The LifecycleEventContext interface provides an access to the server runtime environment including the JNDI naming context and logging service. The following methods are defined in this interface:
public String[] getCmdLineArgs()- Returns the server command line arguments.
public javax.naming.Context getNamingContext()- Returns the naming context.
public String getInstallRoot()- Returns the installation root.
public String getInstanceName()- Returns the server instance name.
public void log(java.util.logging.Level level, String message)- Logs the message to the server log, with verbosity level.
public void log(java.util.logging.Level level, String message, Throwable throwable)- Logs the message and the stack trace for throwable, with verbosity level.
The following two methods are also used by this interface to keep backward compatibility with the 6.1 version of Web Server:
public void log(String message, Throwable throwable): - Logs the message and the stack trace for throwable, with verbosity level.
public javax.naming.Context getInitialContext() - Similar to getNamingContext()