Lines Matching refs:factory

76 // --------- object factory stuff
96 * @param builder The factory builder to install. If null, no builder
102 * @exception IllegalStateException If a factory has already been installed.
121 * Used for accessing object factory builder.
130 * using the reference's factory class name and factory codebase
131 * to load in the factory's class.
133 * @param factoryName The non-null class name of the factory.
134 * @return The object factory for the object identified by ref; null
135 * if unable to load the factory.
172 * @return factory created; null if cannot create
183 // Try each factory until one succeeds
184 ObjectFactory factory;
187 factory = (ObjectFactory)factories.next();
188 answer = factory.getObjectInstance(obj, name, nameCtx, environment);
206 * If an object factory builder has been installed, it is used to
207 * create a factory for creating the object.
211 * or <code>Referenceable</code> containing a factory class name,
212 * use the named factory to create the object.
213 * Return <code>refInfo</code> if the factory cannot be created.
214 * Under JDK 1.1, if the factory class must be loaded from a location
216 * been installed or the factory creation will fail.
217 * If an exception is encountered while creating the factory,
220 * <tt>Referenceable</tt> with no factory class name,
223 * try the URL context factory corresponding to each URL's scheme id
230 * The value of this property is a colon-separated list of factory
245 * Note that an object factory (an object that implements the ObjectFactory
253 * factory or to the object implementation.
270 * be used in the creation of the object factory and the object.
279 * and instantiating the factory and object classes.
280 * A factory should only throw an exception if it does not want
293 ObjectFactory factory;
298 // builder must return non-null factory
299 factory = builder.createObjectFactory(refInfo, environment);
300 return factory.getObjectInstance(refInfo, name, nameCtx,
317 // if reference identifies a factory, use exclusively
319 factory = getObjectFactoryFromReference(ref, f);
320 if (factory != null) {
321 return factory.getObjectInstance(ref, name, nameCtx,
324 // No factory found, so return original refInfo.
325 // Will reach this point if factory class is not in
330 // if reference has no factory, check for addresses
347 * Ref has no factory. For each address of type "URL", try its URL
348 * context factory. Returns null if unsuccessful in creating and
349 * invoking a factory.
375 // If refInfo is a URL string, try to use its URL context factory
390 // try to find a context factory for any one of its URLs.
489 * The class name of the factory that creates the resulting context
498 * the property is tried in the order specified to load the factory class.
516 * If a factory is instantiated, it is invoked with the following
519 * <code>factory.getObjectInstance(null, environment);</code>
522 * on a LDAP URL context factory would return a
527 * Note that an object factory (an object that implements the ObjectFactory
533 * used in the creation of the object factory and the context.
536 * <code>null</code> if the factory for creating the
577 * context factory for the URL scheme.
592 ObjectFactory factory = (ObjectFactory)ResourceManager.getFactory(
596 if (factory == null)
599 // Found object factory
601 return factory.getObjectInstance(urlInfo, name, nameCtx, environment);
630 * it is used to create the factory for creating the initial context.
633 * Note that an initial context factory (an object that implements the
652 InitialContextFactory factory;
656 // No factory installed, use property
657 // Get initial context factory class name
671 factory = (InitialContextFactory)
681 factory = builder.createInitialContextFactory(env);
684 return factory.getInitialContext(env);
695 * @param builder The initial context factory builder to install. If null,
720 * Determines whether an initial context factory builder has
722 * @return true if an initial context factory builder has
804 * The value of this property is a colon-separated list of factory
812 * Note that a state factory
836 * be used in the creation of the state factory and
842 * and instantiating the factory and object classes.
843 * A factory should only throw an exception if it does not want
864 // Try each factory until one succeeds
865 StateFactory factory;
868 factory = (StateFactory)factories.next();
869 answer = factory.getStateToBind(obj, name, nameCtx, environment);