Enum Class SetupResourceScope

java.lang.Object
java.lang.Enum<SetupResourceScope>
net.solarnetwork.node.setup.SetupResourceScope
All Implemented Interfaces:
Serializable, Comparable<SetupResourceScope>, Constable

public enum SetupResourceScope extends Enum<SetupResourceScope>
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
  • Enum Constant Details

    • Default

      public static final SetupResourceScope Default
      A default scope.
    • Application

      public static final SetupResourceScope Application
      Application wide scope, meaning the resource should be applied once at the entire application's level.
  • Method Details

    • values

      public static SetupResourceScope[] 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

      public static SetupResourceScope valueOf(String name)
      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 name
      NullPointerException - if the argument is null