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 StringReturns 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:
getEntryin interfaceSaSystemSetting- Type Parameters:
T- specializedSaSystemSettingType- Parameters:
klass- class- Returns:
- the concrete
SaSystemSettingTypeinstance
-
setEntry
Sets the system setting.- Specified by:
setEntryin interfaceSaSystemSetting- Type Parameters:
T- specializedSaSystemSettingType- Parameters:
klass- classsetting- the concreteSaSystemSettingTypeinstance
-
hasEntry
Checks, if the system setting for the given key exists.- Specified by:
hasEntryin interfaceSaSystemSetting- Type Parameters:
T- specializedSaSystemSettingType- Parameters:
klass- class- Returns:
trueif a system setting exists to the given key, otherwisefalse
-
getAccessKey
Returns the access key the setting is associated to.- Specified by:
getAccessKeyin interfaceSaSetting- Returns:
- the access key
-