|
SunONE Application Server v8.0 PE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.appserv.server.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 | |
java.lang.String[] |
getCmdLineArgs()
Get the server command-line arguments |
javax.naming.InitialContext |
getInitialContext()
Get the initial naming context. |
java.lang.String |
getInstallRoot()
Get server installation root |
java.lang.String |
getInstanceName()
Get the server instance name |
void |
log(java.lang.String message)
Writes the specified message to a server log file. |
void |
log(java.lang.String message,
java.lang.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 java.lang.String[] getCmdLineArgs()
getCmdLineArgs
in interface LifecycleEventContext
public java.lang.String getInstallRoot()
getInstallRoot
in interface LifecycleEventContext
public java.lang.String getInstanceName()
getInstanceName
in interface LifecycleEventContext
public javax.naming.InitialContext getInitialContext()
getInitialContext
in interface LifecycleEventContext
public void log(java.lang.String message)
log
in interface LifecycleEventContext
message
- a String
specifying the
message to be written to the log filepublic void log(java.lang.String message, java.lang.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
|
SunONE Application Server v8.0 PE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.