Package com.sun.enterprise.v3.server
Class LifecycleEventContextImpl
- java.lang.Object
-
- com.sun.enterprise.v3.server.LifecycleEventContextImpl
-
- All Implemented Interfaces:
LifecycleEventContext
public class LifecycleEventContextImpl extends Object implements LifecycleEventContext
-
-
Constructor Summary
Constructors Constructor Description LifecycleEventContextImpl(ServerContext ctx)public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getCmdLineArgs()Get the server command-line argumentsInitialContextgetInitialContext()Get the initial naming context.StringgetInstallRoot()Get server installation rootStringgetInstanceName()Get the server instance namevoidlog(String message)Writes the specified message to a server log file.voidlog(String message, Throwable throwable)Writes an explanatory message and a stack trace for a givenThrowableexception to the server log file.
-
-
-
Constructor Detail
-
LifecycleEventContextImpl
public LifecycleEventContextImpl(ServerContext ctx)
public constructor
-
-
Method Detail
-
getCmdLineArgs
public String[] getCmdLineArgs()
Get the server command-line arguments- Specified by:
getCmdLineArgsin interfaceLifecycleEventContext
-
getInstallRoot
public String getInstallRoot()
Get server installation root- Specified by:
getInstallRootin interfaceLifecycleEventContext
-
getInstanceName
public String getInstanceName()
Get the server instance name- Specified by:
getInstanceNamein interfaceLifecycleEventContext
-
getInitialContext
public InitialContext getInitialContext()
Get the initial naming context.- Specified by:
getInitialContextin interfaceLifecycleEventContext
-
log
public void log(String message)
Writes the specified message to a server log file.- Specified by:
login interfaceLifecycleEventContext- Parameters:
msg- aStringspecifying the message to be written to the log file
-
log
public void log(String message, Throwable throwable)
Writes an explanatory message and a stack trace for a givenThrowableexception to the server log file.- Specified by:
login interfaceLifecycleEventContext- Parameters:
message- aStringthat describes the error or exceptionthrowable- theThrowableerror or exception
-
-