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

LifecycleEventContextImpl

public class LifecycleEventContextImpl extends Object implements LifecycleEventContext
ServerContext interface: the server-wide runtime environment created by ApplicationServer and shared by its subsystems such as the web container or EJB container.

Fields Summary
private com.sun.enterprise.server.ServerContext
ctx
private static Logger
logger
Constructors Summary
public LifecycleEventContextImpl(com.sun.enterprise.server.ServerContext ctx)
public constructor


           
       
        this.ctx = ctx;
    
Methods Summary
public java.lang.String[]getCmdLineArgs()
Get the server command-line arguments

        return ctx.getCmdLineArgs();
    
public javax.naming.InitialContextgetInitialContext()
Get the initial naming context.

        return ctx.getInitialContext();
    
public java.lang.StringgetInstallRoot()
Get server installation root

        return ctx.getInstallRoot();
    
public java.lang.StringgetInstanceName()
Get the server instance name

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

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

        logger.info(message);
    
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

        logger.log(Level.INFO, message, throwable);