Package com.sun.appserv.server
Interface LifecycleEventContext
public interface LifecycleEventContext
LifecycleEventContext interface exposes the server-wide runtime environment that is created by ApplicationServer.
This context has only accessors and is a subset of ServerContext used by the server runtime.
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the server command-line argumentsGet the initial naming context.Get server install rootGet the server instance namevoid
Writes the specified message to a server log file.void
Writes an explanatory message and a stack trace for a givenThrowable
exception to the server log file.
-
Method Details
-
getCmdLineArgs
String[] getCmdLineArgs()Get the server command-line arguments -
getInstallRoot
String getInstallRoot()Get server install root -
getInstanceName
String getInstanceName()Get the server instance name -
getInitialContext
InitialContext getInitialContext()Get the initial naming context. -
log
Writes the specified message to a server log file.- Parameters:
message
- aString
specifying the message to be written to the log file
-
log
Writes an explanatory message and a stack trace for a givenThrowable
exception to the server log file.- Parameters:
message
- aString
that describes the error or exceptionthrowable
- theThrowable
error or exception
-