All Packages Class Hierarchy This Package Previous Next Index
Interface javax.naming.spi.ObjectFactoryBuilder
- public interface ObjectFactoryBuilder
The JNDI framework allows for object implementations to
be loaded in dynamically via "object factories."
For example, when looking up a printer bound in the name space,
if the print service binds printer names to References, the printer
Reference could be used to create a printer object, so that
the caller of lookup can directly operate on the printer object
after the lookup. An ObjectFactory is responsible for creating
objects of a specific type. JNDI uses a default policy for using
and loading object factories. You can override this default policy
by calling javax.naming.spi.setObjectFactory() with an ObjectFactoryBuilder,
which contains the program-defined way of creating/loading
object factories.
Any ObjectFactoryBuilder implementation must implement this
interface that for creating object factories.
- See Also:
- ObjectFactory, getObjectInstance, setObjectFactoryBuilder
-
createObjectFactory(Object, Hashtable)
- Creates a new object factory using the information supplied.
createObjectFactory
public abstract ObjectFactory createObjectFactory(Object obj,
Hashtable info)
- Creates a new object factory using the information supplied.
- Parameters:
- obj - The possibly null object for which to create a factory.
- info - Additional information to use when creating the factory.
Can be null.
- Returns:
- A new instance of an ObjectFactory. null if one cannot be created.
All Packages Class Hierarchy This Package Previous Next Index