Enum Class SaAgentConfig

java.lang.Object
java.lang.Enum<SaAgentConfig>
com.saperion.config.SaAgentConfig
All Implemented Interfaces:
Serializable, Comparable<SaAgentConfig>, Constable

public enum SaAgentConfig extends Enum<SaAgentConfig>
This class is responsible to read the system configurations.
Since:
8.0.1
Author:
Pritam Biswas
  • Enum Constant Details

  • Method Details

    • values

      public static SaAgentConfig[] 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 SaAgentConfig 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
    • getProperty

      public String getProperty(String key)
      Get the property by key and returns the corresponding value as String
      Parameters:
      key -
      Returns:
      The value or null if not found
    • getProperty

      public String getProperty(String key, String defaultValue)
      Get the property by key and return the corresponding value as String. Return defaultValue if not found
      Parameters:
      key -
      Returns:
      The corresponding value or the default value if not found
    • getBooleanProperty

      public boolean getBooleanProperty(String key, boolean defaultValue)
      Get the value of a property as a boolean
      Parameters:
      key -
      defaultValue -
      Returns:
      The corresponding value or default value if not found
    • getIntegerProperty

      public int getIntegerProperty(String key, int defaultValue)
      Get the value of a property as an integer
      Parameters:
      key -
      defaultValue -
      Returns:
      The corresponding value or default value if not found