Enum Class Stage
- All Implemented Interfaces:
The stage we're running in.
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant SummaryEnum ConstantDescriptionWe want fast startup times at the expense of runtime performance and some up front error checking.We want to catch errors as early as possible and take performance hits up front.We're running in a tool (an IDE plugin for example).
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
TOOLpublic static final Stage TOOLWe're running in a tool (an IDE plugin for example). We need binding meta data but not a functioning Injector. Do not inject members of instances. Do not load eager singletons. Do as little as possible so our tools run nice and snappy. Injectors created in this stage cannot be used to satisfy injections.
DEVELOPMENTpublic static final Stage DEVELOPMENTWe want fast startup times at the expense of runtime performance and some up front error checking.
PRODUCTIONpublic static final Stage PRODUCTIONWe want to catch errors as early as possible and take performance hits up front.
valuespublic static Stage values()Returns an array containing the constants of this enum class, in the order they are declared.
- an array containing the constants of this enum class, in the order they are declared
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
name- the name of the enum constant to be returned.
- the enum constant with the specified name
IllegalArgumentException- if this enum class has no constant with the specified name
NullPointerException- if the argument is null