Class StartupContext
java.lang.Object
com.sun.enterprise.module.bootstrap.StartupContext
This class contains important information about the startup process.
This is one of the initial objects to be populated in the
,
so
s 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.
invalid reference
org.jvnet.hk2.component.Habitat
invalid reference
Populator
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Properties
static final String
static final String
static final String
(package private) final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the properties that constitues this context.long
Returns the time at which this StartupContext instance was created.
-
Field Details
-
args
-
timeZero
final long timeZero -
TIME_ZERO_NAME
- See Also:
-
STARTUP_MODULE_NAME
- See Also:
-
STARTUP_MODULESTARTUP_NAME
- See Also:
-
-
Constructor Details
-
StartupContext
public StartupContext() -
StartupContext
-
-
Method Details
-
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
-
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
-