Package net.solarnetwork.node.setup
Enum Class SetupResourceScope
- All Implemented Interfaces:
Serializable,Comparable<SetupResourceScope>,Constable
A scope for setup resources.
Some resources should only be applied once across the entire application,
while others might need different scope.
- Since:
- 1.49
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplication wide scope, meaning the resource should be applied once at the entire application's level.A default scope. -
Method Summary
Modifier and TypeMethodDescriptionstatic SetupResourceScopeReturns the enum constant of this class with the specified name.static SetupResourceScope[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Default
A default scope. -
Application
Application wide scope, meaning the resource should be applied once at the entire application's level.
-
-
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
-