javax.naming.spi
Interface ObjectFactoryBuilder
public interface ObjectFactoryBuilder
Represents the builder that creates the object factories.
- See Also:
NamingManager.setObjectFactoryBuilder(ObjectFactoryBuilder)
createObjectFactory
ObjectFactory createObjectFactory(Object refInfo,
Hashtable<?,?> environment)
throws NamingException
- Create a new object using the supplied environment.
- Parameters:
refInfo
- the referencing object, for which the new object must be
created (can be null). If not null, it is usually an instance of
the Reference
or Referenceable
.environment
- contains the additional information about the factory
being created. Can be null.
- Returns:
- the created object factory. The null is never returned.
- Throws:
NamingException