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

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

Method Detail

createInitialContextFactory

public InitialContextFactory createInitialContextFactory(Hashtable<?,?> environment)
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