com.sun.enterprise.module.bootstrap
Class StartupContext

java.lang.Object
  extended by com.sun.enterprise.module.bootstrap.StartupContext

@Service
public class StartupContext
extends java.lang.Object

This class contains important information about the startup process

Author:
Jerome Dochez

Field Summary
static java.lang.String TIME_ZERO_NAME
           
 
Constructor Summary
StartupContext(java.io.File root, java.util.Properties args)
           
StartupContext(java.io.File root, java.lang.String[] args)
          Creates a new instance of StartupContext
 
Method Summary
 java.util.Properties getArguments()
           
 long getCreationTime()
          Returns the time at which this StartupContext instance was created.
 java.io.File getRootDirectory()
          Gets the "root" directory where the data files are stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIME_ZERO_NAME

public static final java.lang.String TIME_ZERO_NAME
See Also:
Constant Field Values
Constructor Detail

StartupContext

public StartupContext(java.io.File root,
                      java.lang.String[] args)
Creates a new instance of StartupContext


StartupContext

public StartupContext(java.io.File root,
                      java.util.Properties args)
Method Detail

getRootDirectory

public java.io.File getRootDirectory()
Gets the "root" directory where the data files are stored.

This path is always absolutized. TODO: in case of Glassfish, this is the domain directory?


getArguments

public java.util.Properties getArguments()

getCreationTime

public long getCreationTime()
Returns the time at which this StartupContext instance was created. This is roughly the time at which the hk2 program started.

Returns:
the instanciation time


Copyright © 2009 Sun Microsystems, Inc.. All Rights Reserved.