See ObjectFactory for details. DirObjectFactory implementations are intended to be used by DirContext service providers. The service provider, in addition reading an object from the directory, might already have attributes that are useful for the object factory to check to see whether the factory is supposed to process the object. Creates an object using the location or reference information, and attributes specified. Methods inherited from interface javax.naming.spi.
Exception Creates an object using the location or reference information, and attributes specified.
Special requirements of this object are supplied using environment . An example of such an environment property is user identity information. It does this until a factory produces a non-null answer. The search for other factories that may produce a non-null answer is halted. An object factory should only throw an exception if it is sure that it is the only intended factory and that no other object factories should be tried.