Java EE 5 SDK

com.sun.appserv.server
Class LifecycleEventContextImpl

java.lang.Object
  extended by com.sun.appserv.server.LifecycleEventContextImpl
All Implemented Interfaces:
LifecycleEventContext

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.


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

LifecycleEventContextImpl

public LifecycleEventContextImpl(com.sun.enterprise.server.ServerContext ctx)
public constructor

Method Detail

getCmdLineArgs

public String[] getCmdLineArgs()
Get the server command-line arguments

Specified by:
getCmdLineArgs in interface LifecycleEventContext

getInstallRoot

public String getInstallRoot()
Get server installation root

Specified by:
getInstallRoot in interface LifecycleEventContext

getInstanceName

public String getInstanceName()
Get the server instance name

Specified by:
getInstanceName in interface LifecycleEventContext

getInitialContext

public InitialContext getInitialContext()
Get the initial naming context.

Specified by:
getInitialContext in interface LifecycleEventContext

log

public void log(String message)
Writes the specified message to a server log file.

Specified by:
log in interface LifecycleEventContext
Parameters:
msg - a String specifying the message to be written to the log file

log

public void log(String message,
                Throwable throwable)
Writes an explanatory message and a stack trace for a given Throwable exception to the server log file.

Specified by:
log in interface LifecycleEventContext
Parameters:
message - a String that describes the error or exception
throwable - the Throwable error or exception

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.