FileDocCategorySizeDatePackage
ServerContext.javaAPI DocGlassfish v2 API5770Fri May 04 22:35:42 BST 2007com.sun.enterprise.server

ServerContext

public interface ServerContext
ServerContext interface: the server-wide runtime environment created by ApplicationServer and shared by its subsystems such as the web container or EJB container.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.String[]getCmdLineArgs()
Get the server command-line arguments

return
the server command-line arguments

public java.lang.ClassLoadergetCommonClassLoader()
Get the classloader that loads .jars in $instance/lib and classes in $instance/lib/classes.

return
the common class loader for this instance

public com.sun.enterprise.config.serverbeans.ServergetConfigBean()
Get the server configuration bean.

return
the server config bean

public com.sun.enterprise.config.ConfigContextgetConfigContext()
Get the server configuration context.

return
the config context for this server instance

public java.lang.StringgetDefaultDomainName()
get the default domain name

return
String default domain name

public javax.naming.InitialContextgetInitialContext()
Get the initial naming context.

return
the initial naming context

public java.lang.StringgetInstallRoot()
Get server install root

return
the server install root

public com.sun.enterprise.instance.InstanceEnvironmentgetInstanceEnvironment()
Returns the environment object for this instance.

return
the environment object for this server instance

public java.lang.StringgetInstanceName()
Get the server instance name

return
the server instance name

public com.sun.enterprise.InvocationManagergetInvocationManager()
get the J2EE Server invocation manager

return
InvocationManager

public java.lang.ClassLoadergetLifecycleParentClassLoader()
Get the parent class loader for the life cycle modules.

return
the parent class loader for the life cycle modules

public com.sun.enterprise.admin.monitor.registry.MonitoringRegistrygetMonitoringRegistry()
Returns the MonitoringRegistry implementation used for registration of monitoring stats.

return
instance of MonitoringRegistry

public com.sun.enterprise.server.pluggable.PluggableFeatureFactorygetPluggableFeatureFactory()
Get a factory for supported pluggable features. The server can support many pluggable features in different editions. This factory allows access to specialized implementation of features.

public java.lang.StringgetServerConfigURL()
Get a URL representation of server configuration

return
the URL to the server configuration

public java.lang.ClassLoadergetSharedClassLoader()
Returns the shared class loader for this server instance.

return
the shared class loader