public class SaSystemSettingImpl extends Object implements SaSystemSetting, Serializable
SaSystemSettingType
.Constructor and Description |
---|
SaSystemSettingImpl(String key)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessKey()
Returns the access key the setting is associated to.
|
<T extends SaSystemSettingType> |
getEntry(Class<T> klass)
Returns the specific system setting.
|
<T extends SaSystemSettingType> |
hasEntry(Class<T> klass)
Checks, if the system setting for the given key exists.
|
<T extends SaSystemSettingType> |
setEntry(Class<T> klass,
T setting)
Sets the system setting.
|
public SaSystemSettingImpl(String key)
key
- the access keypublic final <T extends SaSystemSettingType> T getEntry(Class<T> klass)
getEntry
in interface SaSystemSetting
T
- specialized SaSystemSettingType
klass
- classSaSystemSettingType
instancepublic final <T extends SaSystemSettingType> void setEntry(Class<T> klass, T setting)
setEntry
in interface SaSystemSetting
T
- specialized SaSystemSettingType
klass
- classsetting
- the concrete SaSystemSettingType
instancepublic final <T extends SaSystemSettingType> boolean hasEntry(Class<T> klass)
hasEntry
in interface SaSystemSetting
T
- specialized SaSystemSettingType
klass
- classtrue
if a system setting exists to the given key,
otherwise false
public final String getAccessKey()
getAccessKey
in interface SaSetting
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.