SunONE Application Server v8.0 PE

com.sun.appserv.server
Class LifecycleEventContextImpl

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

public class LifecycleEventContextImpl
extends java.lang.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
 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

LifecycleEventContextImpl

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

Method Detail

getCmdLineArgs

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

Specified by:
getCmdLineArgs in interface LifecycleEventContext

getInstallRoot

public java.lang.String getInstallRoot()
Get server installation root

Specified by:
getInstallRoot in interface LifecycleEventContext

getInstanceName

public java.lang.String getInstanceName()
Get the server instance name

Specified by:
getInstanceName in interface LifecycleEventContext

getInitialContext

public javax.naming.InitialContext getInitialContext()
Get the initial naming context.

Specified by:
getInitialContext in interface LifecycleEventContext

log

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

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

log

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

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

SunONE Application Server v8.0 PE

Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.