FileDocCategorySizeDatePackage
LifecycleEventContext.javaAPI DocGlassfish v2 API3543Fri May 04 22:32:54 BST 2007com.sun.appserv.server

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.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.String[]getCmdLineArgs()
Get the server command-line arguments

public javax.naming.InitialContextgetInitialContext()
Get the initial naming context.

public java.lang.StringgetInstallRoot()
Get server install root

public java.lang.StringgetInstanceName()
Get the server instance name

public voidlog(java.lang.String message)
Writes the specified message to a server log file.

param
message a String specifying the message to be written to the log file

public voidlog(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.

param
message a String that describes the error or exception
param
throwable the Throwable error or exception