Top Description Fields Constructors Methods
com.sun.enterprise.module.bootstrap

public Class StartupContext

extends Object
Class Inheritance
Imports
java.util.Properties

This class contains important information about the startup process. This is one of the initial objects to be populated in the org.jvnet.hk2.component.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

Modifier and TypeField and Description
pack-priv final Properties
public static final String
public static final String
public static final String
pack-priv final long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Properties
getArguments()

Return the properties that constitues this context.

public long

Returns:

the instanciation time
getCreationTime
()

Returns the time at which this StartupContext instance was created.

public String
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argsback to summary
pack-priv final Properties args
STARTUP_MODULE_NAMEback to summary
public static final String STARTUP_MODULE_NAME
STARTUP_MODULESTARTUP_NAMEback to summary
public static final String STARTUP_MODULESTARTUP_NAME
TIME_ZERO_NAMEback to summary
public static final String TIME_ZERO_NAME
timeZeroback to summary
pack-priv final long timeZero

Constructor Detail

StartupContextback to summary
public StartupContext()
StartupContextback to summary
public StartupContext(Properties args)

Method Detail

getArgumentsback to summary
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.

getCreationTimeback to summary
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:long

the instanciation time

getPlatformMainServiceNameback to summary
public String getPlatformMainServiceName()
getStartupModuleNameback to summary
public String getStartupModuleName()