@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.PostConstruct
public File getInstanceRoot()
public String[] getCmdLineArgs()
ServerContext
getCmdLineArgs
in interface ServerContext
public File getInstallRoot()
ServerContext
getInstallRoot
in interface ServerContext
public String getInstanceName()
ServerContext
getInstanceName
in interface ServerContext
public String getServerConfigURL()
ServerContext
getServerConfigURL
in interface ServerContext
public Server getConfigBean()
ServerContext
getConfigBean
in interface ServerContext
public InitialContext getInitialContext()
ServerContext
getInitialContext
in interface ServerContext
public ClassLoader getCommonClassLoader()
ServerContext
getCommonClassLoader
in interface ServerContext
public ClassLoader getSharedClassLoader()
ServerContext
getSharedClassLoader
in interface ServerContext
public ClassLoader getLifecycleParentClassLoader()
ServerContext
getLifecycleParentClassLoader
in interface ServerContext
public InvocationManager getInvocationManager()
ServerContext
getInvocationManager
in interface ServerContext
public String getDefaultDomainName()
ServerContext
getDefaultDomainName
in interface ServerContext
public org.glassfish.hk2.api.ServiceLocator getDefaultServices()
getDefaultServices
in interface ServerContext
Copyright © 2019. All rights reserved.