|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.config.domain.AbstractAdminModeSupportedPropertiesManagement de.smartics.properties.impl.config.cache.AbstractCacheConfigurationPropertiesManagement de.smartics.properties.impl.config.cache.SerializableCacheConfigurationPropertiesManagement
public final class SerializableCacheConfigurationPropertiesManagement
A delegate that provides a cache.
Constructor Summary | |
---|---|
SerializableCacheConfigurationPropertiesManagement(SerializableConfigurationPropertiesManagementSpi delegate) Default constructor. |
Method Summary | ||
---|---|---|
protected ConfigurationPropertiesManagementSpi |
getDelegate() Returns a reference to the delegate. |
|
|
getProperties(Class<T> propertiesInterface, SerializableConfigurationProperties configuration) Returns a implementation of the given interface that has access to the property keys, the property descriptors and the properties itself, when they are declared in the given interface. |
|
PropertyStoreAccessor |
getPropertyStoreAccessor() Provides direct access to the properties in the underlying store. |
|
boolean |
isInAdminMode() Checks whether or not this configuration is in administration mode. |
|
void |
setToAdminMode(boolean newMode) Sets the administration mode for this configuration. |
|
SerializableConfigurationPropertiesManagement |
toSerializable() Creates a serializable variant of this implementation. |
Methods inherited from class de.smartics.properties.api.config.domain.AbstractAdminModeSupportedPropertiesManagement |
---|
toRepresentative |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement |
---|
addDefinitions, addDescriptors, flush, getDescriptor, getDescriptor, getMandatoryPropertyDescriptors, getPropertyValueSecurity, getRegistry, setProperty, toRepresentative, unsetProperty |
Methods inherited from interface de.smartics.properties.api.config.domain.ConfigurationProperties |
---|
addPropertyChangeListener, addPropertyChangeListener, getContext, getContext, getKey, getProperties, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyAsType, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValueAsString, getPropertyValueAsString, getPropertyValueAsString, getPropertyValueAsString, getValidatedProperty, getValidatedProperty, getValidatedProperty, removePropertyChangeListener, removePropertyChangeListener, validate, validate, validate, validate, validate |
Constructor Detail |
---|
public SerializableCacheConfigurationPropertiesManagement(SerializableConfigurationPropertiesManagementSpi delegate) throws NullPointerException
delegate
- the wrapped delegate whose properties are to be cached.
NullPointerException
- if
delegate
is
null
.
Method Detail |
---|
public boolean isInAdminMode()
AbstractAdminModeSupportedPropertiesManagement
This implementation also checks whether the admin mode is set for the current thread only. Please refer to ConfigControl
for details on how to set the admin mode for the current thread.
isInAdminMode
in interface
ConfigurationProperties
isInAdminMode
in class
AbstractAdminModeSupportedPropertiesManagement
true
if the configuration is in administration mode,
false
otherwise.
public void setToAdminMode(boolean newMode)
ConfigurationPropertiesManagement
setToAdminMode
in interface
ConfigurationPropertiesManagement
setToAdminMode
in class
AbstractAdminModeSupportedPropertiesManagement
newMode
- the new value of the mode
true
if the configuration is to be set in administration mode,
false
if not.
ConfigurationProperties.isInAdminMode()
protected ConfigurationPropertiesManagementSpi getDelegate()
AbstractCacheConfigurationPropertiesManagement
getDelegate
in class
AbstractCacheConfigurationPropertiesManagement
null
.
public <T> T getProperties(Class<T> propertiesInterface, SerializableConfigurationProperties configuration)
ConfigurationPropertiesSpi
PropertySet
annotation.
Allows to pass in a configuration to consult.
getProperties
in interface
ConfigurationPropertiesSpi
T
- type variable to enable a type save return value.
propertiesInterface
- a
PropertySet
annotated interface for which a implementation to access the property keys, descriptors and values is requested.
configuration
- the access to the properties. Must not be
null
.
public SerializableConfigurationPropertiesManagement toSerializable()
ConfigurationProperties
toSerializable
in interface
ConfigurationProperties
toSerializable
in interface
ConfigurationPropertiesManagement
ConfigurationPropertiesProxy
,
ConfigurationPropertiesManagementProxy
public PropertyStoreAccessor getPropertyStoreAccessor()
ConfigurationPropertiesManagement
getPropertyStoreAccessor
in interface
ConfigurationPropertiesManagement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |