Enum Class Instantiate
- All Implemented Interfaces:
Serializable,Comparable<Instantiate>,Constable
The
Instantiate enum defines the different ways an instance of a class
can be managed during the auto registration process.
This enum is primarily used to determine whether a new instance should be created every time the class is accessed or whether the same instance should be reused.
- Since:
- 3.3.2-SNAPSHOT
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic InstantiateReturns the enum constant of this class with the specified name.static Instantiate[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SAME
Indicates that the same instance of the class should be reused. -
NEW
Indicates that a new instance of the class should be created each time it is accessed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns 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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-