com.sun.enterprise.v3.server
Class LifecycleEventContextImpl

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

public class LifecycleEventContextImpl
extends Object
implements LifecycleEventContext


Constructor Summary
LifecycleEventContextImpl(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(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


Copyright © 2012. All Rights Reserved.