javax.naming.spi
Interface InitialContextFactoryBuilder


public interface InitialContextFactoryBuilder

Represents the builder that creates instances of the factories that produce initial naming contexts. JNDI allows to specifiy different initial contexts at runtime. The user program can install its own initial context factory builder.

See Also:
NamingManager.setInitialContextFactoryBuilder(javax.naming.spi.InitialContextFactoryBuilder)

Method Summary
 InitialContextFactory createInitialContextFactory(Hashtable<?,?> environment)
          Create the new initial context factory
 

Method Detail

createInitialContextFactory

InitialContextFactory createInitialContextFactory(Hashtable<?,?> environment)
                                                  throws NamingException
Create the new initial context factory

Parameters:
environment - the properties, used for creation of the initial context factory. The parameter is owned by the caller: it is safe to reuse the table for other purposes after the method returns.
Returns:
the created initial context factory, never null.
Throws:
NamingException - on failure