Class StartupContext
- java.lang.Object
-
- com.sun.enterprise.module.bootstrap.StartupContext
-
public class StartupContext extends java.lang.ObjectThis class contains important information about the startup process. This is one of the initial objects to be populated in theorg.jvnet.hk2.component.Habitat, soPopulators 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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Propertiesargsstatic java.lang.StringSTARTUP_MODULE_NAMEstatic java.lang.StringSTARTUP_MODULESTARTUP_NAMEstatic java.lang.StringTIME_ZERO_NAME(package private) longtimeZero
-
Constructor Summary
Constructors Constructor Description StartupContext()StartupContext(java.util.Properties args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.PropertiesgetArguments()Return the properties that constitues this context.longgetCreationTime()Returns the time at which this StartupContext instance was created.java.lang.StringgetPlatformMainServiceName()java.lang.StringgetStartupModuleName()
-
-
-
Field Detail
-
args
final java.util.Properties args
-
timeZero
final long timeZero
-
TIME_ZERO_NAME
public static final java.lang.String TIME_ZERO_NAME
- See Also:
- Constant Field Values
-
STARTUP_MODULE_NAME
public static final java.lang.String STARTUP_MODULE_NAME
- See Also:
- Constant Field Values
-
STARTUP_MODULESTARTUP_NAME
public static final java.lang.String STARTUP_MODULESTARTUP_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getArguments
public java.util.Properties getArguments()
Return the properties that constitues this context. Except the well known properties likeTIME_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 java.lang.String getStartupModuleName()
-
getPlatformMainServiceName
public java.lang.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
-
-