public class LifecycleEventContextImpl extends Object implements LifecycleEventContext
| Constructor and Description |
|---|
LifecycleEventContextImpl(ServerContext ctx)
public constructor
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCmdLineArgs()
Get the server command-line arguments
|
InitialContext |
getInitialContext()
Get the initial naming context.
|
String |
getInstallRoot()
Get server installation root
|
String |
getInstanceName()
Get the server instance name
|
void |
log(String message)
Writes the specified message to a server log file.
|
void |
log(String message,
Throwable throwable)
Writes an explanatory message and a stack trace
for a given
Throwable exception
to the server log file. |
public LifecycleEventContextImpl(ServerContext ctx)
public String[] getCmdLineArgs()
getCmdLineArgs in interface LifecycleEventContextpublic String getInstallRoot()
getInstallRoot in interface LifecycleEventContextpublic String getInstanceName()
getInstanceName in interface LifecycleEventContextpublic InitialContext getInitialContext()
getInitialContext in interface LifecycleEventContextpublic void log(String message)
log in interface LifecycleEventContextmsg - a String specifying the
message to be written to the log filepublic void log(String message, Throwable throwable)
Throwable exception
to the server log file.log in interface LifecycleEventContextmessage - a String that
describes the error or exceptionthrowable - the Throwable error
or exceptionCopyright © 2019. All rights reserved.