|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.server.LifecycleEventContextImpl
public class LifecycleEventContextImpl
ServerContext interface: the server-wide runtime environment created by ApplicationServer and shared by its subsystems such as the web container or EJB container.
Constructor Summary | |
---|---|
LifecycleEventContextImpl(com.sun.enterprise.server.ServerContext ctx)
public constructor |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifecycleEventContextImpl(com.sun.enterprise.server.ServerContext ctx)
Method Detail |
---|
public String[] getCmdLineArgs()
getCmdLineArgs
in interface LifecycleEventContext
public String getInstallRoot()
getInstallRoot
in interface LifecycleEventContext
public String getInstanceName()
getInstanceName
in interface LifecycleEventContext
public InitialContext getInitialContext()
getInitialContext
in interface LifecycleEventContext
public void log(String message)
log
in interface LifecycleEventContext
msg
- 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 LifecycleEventContext
message
- a String
that
describes the error or exceptionthrowable
- the Throwable
error
or exception
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.