com.sun.enterprise.naming
Class GlassFishNamingBuilder
java.lang.Object
com.sun.enterprise.naming.GlassFishNamingBuilder
- All Implemented Interfaces:
- InitialContextFactoryBuilder, org.glassfish.hk2.PostConstruct, org.glassfish.hk2.PreDestroy
@Service
public class GlassFishNamingBuilder
- extends Object
- implements InitialContextFactoryBuilder, org.jvnet.hk2.component.PostConstruct, org.jvnet.hk2.component.PreDestroy
This is both a startup 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.
- Author:
- Sanjeeb.Sahoo@Sun.COM
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlassFishNamingBuilder
public GlassFishNamingBuilder()
createInitialContextFactory
public InitialContextFactory createInitialContextFactory(Hashtable<?,?> environment)
throws NamingException
- Specified by:
createInitialContextFactory in interface InitialContextFactoryBuilder
- Throws:
NamingException
postConstruct
public void postConstruct()
- Specified by:
postConstruct in interface org.glassfish.hk2.PostConstruct
preDestroy
public void preDestroy()
- Specified by:
preDestroy in interface org.glassfish.hk2.PreDestroy
Copyright © 2012. All Rights Reserved.