|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<InitMilestone>
hudson.init.InitMilestone
public enum InitMilestone
Various key milestone in the initialization process of Hudson.
Plugins can use these milestones to execute their initialization at the right moment
(in addition to defining their own milestones by implementing Milestone
.
These milestones are achieve in this order.
Enum Constant Summary | |
---|---|
COMPLETED
The very last milestone This is used in Initializer.before() since annotations cannot have null as the default value. |
|
EXTENSIONS_AUGMENTED
By this milestone, all programmatically constructed extension point implementations should be added. |
|
JOB_LOADED
By this milestone, all jobs and their build records are loaded from disk. |
|
PLUGINS_LISTED
By this milestone, all plugins metadata are inspected and their dependencies figured out. |
|
PLUGINS_PREPARED
By this milestone, all plugin metadata are loaded and its classloader set up. |
|
PLUGINS_STARTED
By this milestone, all plugins start executing, all extension points loaded, descriptors instantiated and loaded. |
|
STARTED
The very first milestone that gets achieved without doing anything. |
Method Summary | |
---|---|
static org.jvnet.hudson.reactor.TaskBuilder |
ordering()
Creates a set of dummy tasks to enforce ordering among InitMilestone s. |
String |
toString()
|
static InitMilestone |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static InitMilestone[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final InitMilestone STARTED
Initializer.after()
since annotations cannot have null as the default value.
public static final InitMilestone PLUGINS_LISTED
public static final InitMilestone PLUGINS_PREPARED
public static final InitMilestone PLUGINS_STARTED
This is a separate milestone from PLUGINS_PREPARED
since the execution
of a plugin often involves finding extension point implementations, which in turn
require all the classes from all the plugins to be loadable.
public static final InitMilestone EXTENSIONS_AUGMENTED
public static final InitMilestone JOB_LOADED
public static final InitMilestone COMPLETED
Initializer.before()
since annotations cannot have null as the default value.
Method Detail |
---|
public static InitMilestone[] values()
for (InitMilestone c : InitMilestone.values()) System.out.println(c);
public static InitMilestone valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static org.jvnet.hudson.reactor.TaskBuilder ordering()
InitMilestone
s.
public String toString()
toString
in class Enum<InitMilestone>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |