Package com.sun.enterprise.v3.server
Class ServerContextImpl
- java.lang.Object
-
- com.sun.enterprise.v3.server.ServerContextImpl
-
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct,ServerContext
@Service @Singleton public class ServerContextImpl extends Object implements ServerContext, org.glassfish.hk2.api.PostConstruct
This is the Server Context object.- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description ServerContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getCmdLineArgs()Get the server command-line argumentsClassLoadergetCommonClassLoader()Get the classloader that loads .jars in $instance/lib and classes in $instance/lib/classes.ServergetConfigBean()Get the server configuration bean.StringgetDefaultDomainName()get the default domain nameorg.glassfish.hk2.api.ServiceLocatorgetDefaultServices()Returns the default services for this instanceInitialContextgetInitialContext()Get the initial naming context.FilegetInstallRoot()Get server install rootStringgetInstanceName()Get the server instance nameFilegetInstanceRoot()InvocationManagergetInvocationManager()get the J2EE Server invocation managerClassLoadergetLifecycleParentClassLoader()Get the parent class loader for the life cycle modules.StringgetServerConfigURL()Get a URL representation of server configurationClassLoadergetSharedClassLoader()Returns the shared class loader for this server instance.voidpostConstruct()Creates a new instance of ServerContextImpl
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
Creates a new instance of ServerContextImpl- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
getInstanceRoot
public File getInstanceRoot()
-
getCmdLineArgs
public String[] getCmdLineArgs()
Description copied from interface:ServerContextGet the server command-line arguments- Specified by:
getCmdLineArgsin interfaceServerContext- Returns:
- the server command-line arguments
-
getInstallRoot
public File getInstallRoot()
Description copied from interface:ServerContextGet server install root- Specified by:
getInstallRootin interfaceServerContext- Returns:
- the server install root
-
getInstanceName
public String getInstanceName()
Description copied from interface:ServerContextGet the server instance name- Specified by:
getInstanceNamein interfaceServerContext- Returns:
- the server instance name
-
getServerConfigURL
public String getServerConfigURL()
Description copied from interface:ServerContextGet a URL representation of server configuration- Specified by:
getServerConfigURLin interfaceServerContext- Returns:
- the URL to the server configuration
-
getConfigBean
public Server getConfigBean()
Description copied from interface:ServerContextGet the server configuration bean.- Specified by:
getConfigBeanin interfaceServerContext- Returns:
- the server config bean
-
getInitialContext
public InitialContext getInitialContext()
Description copied from interface:ServerContextGet the initial naming context.- Specified by:
getInitialContextin interfaceServerContext- Returns:
- the initial naming context
-
getCommonClassLoader
public ClassLoader getCommonClassLoader()
Description copied from interface:ServerContextGet the classloader that loads .jars in $instance/lib and classes in $instance/lib/classes.- Specified by:
getCommonClassLoaderin interfaceServerContext- Returns:
- the common class loader for this instance
-
getSharedClassLoader
public ClassLoader getSharedClassLoader()
Description copied from interface:ServerContextReturns the shared class loader for this server instance.- Specified by:
getSharedClassLoaderin interfaceServerContext- Returns:
- the shared class loader
-
getLifecycleParentClassLoader
public ClassLoader getLifecycleParentClassLoader()
Description copied from interface:ServerContextGet the parent class loader for the life cycle modules.- Specified by:
getLifecycleParentClassLoaderin interfaceServerContext- Returns:
- the parent class loader for the life cycle modules
-
getInvocationManager
public InvocationManager getInvocationManager()
Description copied from interface:ServerContextget the J2EE Server invocation manager- Specified by:
getInvocationManagerin interfaceServerContext- Returns:
- InvocationManager
-
getDefaultDomainName
public String getDefaultDomainName()
Description copied from interface:ServerContextget the default domain name- Specified by:
getDefaultDomainNamein interfaceServerContext- Returns:
- String default domain name
-
getDefaultServices
public org.glassfish.hk2.api.ServiceLocator getDefaultServices()
Returns the default services for this instance- Specified by:
getDefaultServicesin interfaceServerContext- Returns:
- default services
-
-