public class StartupContext
extends java.lang.Object
org.jvnet.hk2.component.Habitat
,
so Populator
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.Modifier and Type | Field and Description |
---|---|
(package private) java.util.Properties |
args |
static java.lang.String |
STARTUP_MODULE_NAME |
static java.lang.String |
STARTUP_MODULESTARTUP_NAME |
static java.lang.String |
TIME_ZERO_NAME |
(package private) long |
timeZero |
Constructor and Description |
---|
StartupContext() |
StartupContext(java.util.Properties args) |
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
getArguments()
Return the properties that constitues this context.
|
long |
getCreationTime()
Returns the time at which this StartupContext instance was created.
|
java.lang.String |
getPlatformMainServiceName() |
java.lang.String |
getStartupModuleName() |
final java.util.Properties args
final long timeZero
public static final java.lang.String TIME_ZERO_NAME
public static final java.lang.String STARTUP_MODULE_NAME
public static final java.lang.String STARTUP_MODULESTARTUP_NAME
public StartupContext()
public StartupContext(java.util.Properties args)
public java.util.Properties getArguments()
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.public java.lang.String getStartupModuleName()
public java.lang.String getPlatformMainServiceName()
public long getCreationTime()