Class GlassFishNamingBuilder

java.lang.Object
com.sun.enterprise.naming.GlassFishNamingBuilder
All Implemented Interfaces:
InitialContextFactoryBuilder, org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy

@Service @RunLevel(value=1, mode=0) public class GlassFishNamingBuilder extends Object implements InitialContextFactoryBuilder, org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy
This is both a init run level service as well as our implementation of InitialContextFactoryBuilder. When GlassFish starts up, this startup service configures NamingManager with appropriate builder by calling NamingManager.setInitialContextFactoryBuilder(javax.naming.spi.InitialContextFactoryBuilder). Once the builder is setup, when ever new InitialContext() is called, builder can either instantiate SerialInitContextFactory, which is our implementation of InitialContextFactory, or any user specified InitialContextFactory class. While loading user specified class, it first uses Thread's context class loader and then CommonClassLoader. Please note that this is setup as an init level service to ensure that JNDI subsystem is setup before applications are loaded.
Author:
Sanjeeb.Sahoo@Sun.COM