com.sun.enterprise.module.bootstrap
Class StartupContext

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

public class StartupContext
extends Object

This class contains important information about the startup process. This is one of the initial objects to be populated in the Habitat, so Populators can depend on this object. Do not add domain specific knowledge here. Since this takes a properties object in the constructor, such knowledge can be maintained outside this object.

Author:
Jerome Dochez, Sanjeeb Sahoo

Field Summary
static String STARTUP_MODULE_NAME
           
static String STARTUP_MODULESTARTUP_NAME
           
static String TIME_ZERO_NAME
           
 
Constructor Summary
StartupContext()
           
StartupContext(Properties args)
           
 
Method Summary
 Properties getArguments()
          Return the properties that constitues this context.
 long getCreationTime()
          Returns the time at which this StartupContext instance was created.
 String getPlatformMainServiceName()
           
 String getStartupModuleName()
           
 
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 String TIME_ZERO_NAME
See Also:
Constant Field Values

STARTUP_MODULE_NAME

public static final String STARTUP_MODULE_NAME
See Also:
Constant Field Values

STARTUP_MODULESTARTUP_NAME

public static final String STARTUP_MODULESTARTUP_NAME
See Also:
Constant Field Values
Constructor Detail

StartupContext

public StartupContext()

StartupContext

public StartupContext(Properties args)
Method Detail

getArguments

public Properties getArguments()
Return the properties that constitues this context. Except the well known properties like TIME_ZERO_NAME, STARTUP_MODULE_NAME, STARTUP_MODULESTARTUP_NAME, this class does not know about any other properties. It is up to the user set them and get them.


getStartupModuleName

public String getStartupModuleName()

getPlatformMainServiceName

public String getPlatformMainServiceName()

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 © 2013 Oracle Corporation. All Rights Reserved.