Package com.saperion.config
Enum Class SaAgentConfig
- All Implemented Interfaces:
Serializable
,Comparable<SaAgentConfig>
,Constable
This class is responsible to read the system configurations.
- Since:
- 8.0.1
- Author:
- Pritam Biswas
-
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 TypeMethodDescriptionboolean
getBooleanProperty
(String key, boolean defaultValue) Get the value of a property as a booleanint
getIntegerProperty
(String key, int defaultValue) Get the value of a property as an integergetProperty
(String key) Get the property by key and returns the corresponding value asString
getProperty
(String key, String defaultValue) Get the property by key and return the corresponding value asString
.static SaAgentConfig
Returns the enum constant of this class with the specified name.static SaAgentConfig[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
-
-
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
-
getProperty
Get the property by key and returns the corresponding value asString
- Parameters:
key
-- Returns:
- The value or null if not found
-
getProperty
Get the property by key and return the corresponding value asString
. Return defaultValue if not found- Parameters:
key
-- Returns:
- The corresponding value or the default value if not found
-
getBooleanProperty
Get the value of a property as a boolean- Parameters:
key
-defaultValue
-- Returns:
- The corresponding value or default value if not found
-
getIntegerProperty
Get the value of a property as an integer- Parameters:
key
-defaultValue
-- Returns:
- The corresponding value or default value if not found
-