Lines Matching refs:factory

132       *         be used in the creation of the object factory and the object.
138 * a factory.
144 * and instantiating the factory and object classes.
145 * A factory should only throw an exception if it does not want
158 ObjectFactory factory;
162 // builder must return non-null factory
163 factory = builder.createObjectFactory(refInfo, environment);
164 if (factory instanceof DirObjectFactory) {
165 return ((DirObjectFactory)factory).getObjectInstance(
168 return factory.getObjectInstance(refInfo, name, nameCtx,
186 // if reference identifies a factory, use exclusively
188 factory = getObjectFactoryFromReference(ref, f);
189 if (factory instanceof DirObjectFactory) {
190 return ((DirObjectFactory)factory).getObjectInstance(
192 } else if (factory != null) {
193 return factory.getObjectInstance(ref, name, nameCtx,
196 // No factory found, so return original refInfo.
197 // Will reach this point if factory class is not in
202 // if reference has no factory, check for addresses
204 // ignore name & attrs params; not used in URL factory
229 ObjectFactory factory;
231 // Try each factory until one succeeds
233 factory = (ObjectFactory)factories.next();
234 if (factory instanceof DirObjectFactory) {
235 answer = ((DirObjectFactory)factory).
239 factory.getObjectInstance(obj, name, nameCtx, environment);
284 * be used in the creation of the state factory and
290 * If no state factory returns a non-null answer, the result will contain
294 * A factory should only throw an exception if it does not want
316 // Try each factory until one succeeds
317 StateFactory factory;
321 factory = (StateFactory)factories.next();
322 if (factory instanceof DirStateFactory) {
323 answer = ((DirStateFactory)factory).
327 factory.getStateToBind(obj, name, nameCtx, environment);