Package com.saperion.settings
Class SaSystemSettingImpl
java.lang.Object
com.saperion.settings.SaSystemSettingImpl
- All Implemented Interfaces:
SaSetting
,SaSystemSetting
,Serializable
System setting implementation. This class holds all system settings
accessible by the class name of the specific
SaSystemSettingType
.- Author:
- mak
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Returns the access key the setting is associated to.final <T extends SaSystemSettingType>
TReturns the specific system setting.final <T extends SaSystemSettingType>
booleanChecks, if the system setting for the given key exists.final <T extends SaSystemSettingType>
voidSets the system setting.
-
Constructor Details
-
SaSystemSettingImpl
Constructor.- Parameters:
key
- the access key
-
-
Method Details
-
getEntry
Returns the specific system setting.- Specified by:
getEntry
in interfaceSaSystemSetting
- Type Parameters:
T
- specializedSaSystemSettingType
- Parameters:
klass
- class- Returns:
- the concrete
SaSystemSettingType
instance
-
setEntry
Sets the system setting.- Specified by:
setEntry
in interfaceSaSystemSetting
- Type Parameters:
T
- specializedSaSystemSettingType
- Parameters:
klass
- classsetting
- the concreteSaSystemSettingType
instance
-
hasEntry
Checks, if the system setting for the given key exists.- Specified by:
hasEntry
in interfaceSaSystemSetting
- Type Parameters:
T
- specializedSaSystemSettingType
- Parameters:
klass
- class- Returns:
true
if a system setting exists to the given key, otherwisefalse
-
getAccessKey
Returns the access key the setting is associated to.- Specified by:
getAccessKey
in interfaceSaSetting
- Returns:
- the access key
-