All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface javax.naming.spi.InitialContextFactoryBuilder

public interface InitialContextFactoryBuilder
This interface represents a builder that creates initial context factories.

The JNDI framework allows for different initial context implementations to be specified at runtime. An initial context is created using an initial context factory. A program can install its own builder that creates initial context factories, thereby overriding the default policies used by the framework, by calling NamingManager.setInitialContextFactoryBuilder(). The InitialContextFactoryBuilder interface must be implemented by such a builder.

See Also:
InitialContextFactory, getInitialContext, setInitialContextFactoryBuilder, hasInitialContextFactoryBuilder, InitialContext, InitialDSContext

Method Index

 o createInitialContextFactory(Hashtable)
Creates an initial context factory using the specified environment.

Methods

 o createInitialContextFactory
 public abstract InitialContextFactory createInitialContextFactory(Hashtable environment) throws NamingException
Creates an initial context factory using the specified environment.

Parameters:
environment - Environment used in creating an intial context implementation. Can be null.
Returns:
A non-null initial context factory.
Throws: NamingException
If an initial context factory could not be created.

All Packages  Class Hierarchy  This Package  Previous  Next  Index