@Service @Singleton public class ServerContextImpl extends Object implements ServerContext, org.glassfish.hk2.api.PostConstruct
| Constructor and Description |
|---|
ServerContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCmdLineArgs()
Get the server command-line arguments
|
ClassLoader |
getCommonClassLoader()
Get the classloader that loads .jars in $instance/lib and classes
in $instance/lib/classes.
|
Server |
getConfigBean()
Get the server configuration bean.
|
String |
getDefaultDomainName()
get the default domain name
|
org.glassfish.hk2.api.ServiceLocator |
getDefaultServices()
Returns the default services for this instance
|
InitialContext |
getInitialContext()
Get the initial naming context.
|
File |
getInstallRoot()
Get server install root
|
String |
getInstanceName()
Get the server instance name
|
File |
getInstanceRoot() |
InvocationManager |
getInvocationManager()
get the J2EE Server invocation manager
|
ClassLoader |
getLifecycleParentClassLoader()
Get the parent class loader for the life cycle modules.
|
String |
getServerConfigURL()
Get a URL representation of server configuration
|
ClassLoader |
getSharedClassLoader()
Returns the shared class loader for this server instance.
|
void |
postConstruct()
Creates a new instance of ServerContextImpl
|
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic File getInstanceRoot()
public String[] getCmdLineArgs()
ServerContextgetCmdLineArgs in interface ServerContextpublic File getInstallRoot()
ServerContextgetInstallRoot in interface ServerContextpublic String getInstanceName()
ServerContextgetInstanceName in interface ServerContextpublic String getServerConfigURL()
ServerContextgetServerConfigURL in interface ServerContextpublic Server getConfigBean()
ServerContextgetConfigBean in interface ServerContextpublic InitialContext getInitialContext()
ServerContextgetInitialContext in interface ServerContextpublic ClassLoader getCommonClassLoader()
ServerContextgetCommonClassLoader in interface ServerContextpublic ClassLoader getSharedClassLoader()
ServerContextgetSharedClassLoader in interface ServerContextpublic ClassLoader getLifecycleParentClassLoader()
ServerContextgetLifecycleParentClassLoader in interface ServerContextpublic InvocationManager getInvocationManager()
ServerContextgetInvocationManager in interface ServerContextpublic String getDefaultDomainName()
ServerContextgetDefaultDomainName in interface ServerContextpublic org.glassfish.hk2.api.ServiceLocator getDefaultServices()
getDefaultServices in interface ServerContextCopyright © 2019. All rights reserved.