Enum Class AbstractRegistry.InstantiationMode
java.lang.Object
java.lang.Enum<AbstractRegistry.InstantiationMode>
de.aristaflow.adept2.base.registry.AbstractRegistry.InstantiationMode
- All Implemented Interfaces:
Serializable,Comparable<AbstractRegistry.InstantiationMode>,java.lang.constant.Constable
- Enclosing class:
- AbstractRegistry
public static enum AbstractRegistry.InstantiationMode
extends Enum<AbstractRegistry.InstantiationMode>
The instantiation modes an instance may have. This refers to a concrete
instance (anonymous or named instance). Some components have fixed
instantiation modes, for instance, registries are always singleton,
execution environments are always multiple.
- Author:
- Kevin Goeser
-
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 TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AbstractRegistry.InstantiationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SINGLETON
Singleton mode. -
MULTIPLE
Multiple instantiation. -
OFF
No instantiation by the registry but by external components.
-
-
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
-