Package org.glassfish.internal.api
Interface ServerContext
-
@Contract public interface ServerContextServerContext interface: the server-wide runtime environment created by ApplicationServer and shared by its subsystems such as the web container or EJB container.
-
-
Method Summary
All Methods Instance Methods Abstract 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.com.sun.enterprise.config.serverbeans.ServergetConfigBean()Get the server configuration bean.StringgetDefaultDomainName()get the default domain nameorg.glassfish.hk2.api.ServiceLocatorgetDefaultServices()Returns the default habitat for this instanceInitialContextgetInitialContext()Get the initial naming context.FilegetInstallRoot()Get server install rootStringgetInstanceName()Get the server instance nameorg.glassfish.api.invocation.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.
-
-
-
Method Detail
-
getCmdLineArgs
String[] getCmdLineArgs()
Get the server command-line arguments- Returns:
- the server command-line arguments
-
getInstallRoot
File getInstallRoot()
Get server install root- Returns:
- the server install root
-
getInstanceName
String getInstanceName()
Get the server instance name- Returns:
- the server instance name
-
getServerConfigURL
String getServerConfigURL()
Get a URL representation of server configuration- Returns:
- the URL to the server configuration
-
getConfigBean
com.sun.enterprise.config.serverbeans.Server getConfigBean()
Get the server configuration bean.- Returns:
- the server config bean
-
getInitialContext
InitialContext getInitialContext()
Get the initial naming context.- Returns:
- the initial naming context
-
getCommonClassLoader
ClassLoader getCommonClassLoader()
Get the classloader that loads .jars in $instance/lib and classes in $instance/lib/classes.- Returns:
- the common class loader for this instance
-
getSharedClassLoader
ClassLoader getSharedClassLoader()
Returns the shared class loader for this server instance.- Returns:
- the shared class loader
-
getLifecycleParentClassLoader
ClassLoader getLifecycleParentClassLoader()
Get the parent class loader for the life cycle modules.- Returns:
- the parent class loader for the life cycle modules
-
getInvocationManager
org.glassfish.api.invocation.InvocationManager getInvocationManager()
get the J2EE Server invocation manager- Returns:
- InvocationManager
-
getDefaultDomainName
String getDefaultDomainName()
get the default domain name- Returns:
- String default domain name
-
getDefaultServices
org.glassfish.hk2.api.ServiceLocator getDefaultServices()
Returns the default habitat for this instance- Returns:
- defa ult habitat
-
-