|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.config.support.AbstractConfigurationProperties de.smartics.properties.spi.config.support.AbstractAdminModeConfigurationProperties de.smartics.properties.spi.config.support.AbstractConfigurationPropertiesManagement de.smartics.properties.impl.config.jndi.JndiConfigurationProperties
@ThreadSafe public final class JndiConfigurationProperties
Implementation based on JNDI.
Constructor Summary | |
---|---|
JndiConfigurationProperties(ConfigurationKey<?> key, PropertyDescriptorRegistry registry, PropertyValueSecurity decrypter) Default constructor. |
Method Summary | |
---|---|
protected void |
addDefinitionsToStore(PropertyProvider properties) Implementations decide whether or not registered definitions should be written to the store. |
PropertyStoreAccessor |
getPropertyStoreAccessor() Provides direct access to the properties in the underlying store. |
protected void |
setPropertiesToStore(PropertyProvider provider) Allows to store all properties efficiently by subclasses. |
SerializableConfigurationPropertiesManagement |
toSerializable() Creates a serializable variant of this implementation. |
Methods inherited from class de.smartics.properties.spi.config.support.AbstractConfigurationPropertiesManagement |
---|
addDefinitions, addDescriptors, deletePropertyInStore, flush, getDescriptor, getDescriptor, getMandatoryPropertyDescriptors, getProperty, getProperty, getPropertyAsType, getPropertyCollectionFromStore, getPropertyFromStore, getValidatedProperty, setProperty, setPropertyToStore, unsetProperty, validate, validate, validate |
Methods inherited from class de.smartics.properties.spi.config.support.AbstractAdminModeConfigurationProperties |
---|
isInAdminMode, setToAdminMode, toRepresentative |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement |
---|
addDefinitions, addDescriptors, flush, getDescriptor, getDescriptor, getMandatoryPropertyDescriptors, getPropertyValueSecurity, getRegistry, setProperty, setToAdminMode, toRepresentative, unsetProperty |
Methods inherited from interface de.smartics.properties.spi.config.support.ConfigurationPropertiesSpi |
---|
getProperties |
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, isInAdminMode, removePropertyChangeListener, removePropertyChangeListener, validate, validate, validate, validate, validate |
Constructor Detail |
---|
public JndiConfigurationProperties(ConfigurationKey<?> key, PropertyDescriptorRegistry registry, PropertyValueSecurity decrypter) throws de.smartics.util.lang.NullArgumentException, NamingException, IllegalArgumentException
key
- the key that identifies the configuration.
registry
- the registry to resolve property descriptors.
decrypter
- the helper to decrypt secured property values.
de.smartics.util.lang.NullArgumentException
- if
key
,
registry
or
decrypter
is
null
.
NamingException
- if the JNDI context cannot be created.
IllegalArgumentException
- on any problem accessing the JNDI context.
Method Detail |
---|
public PropertyStoreAccessor getPropertyStoreAccessor()
ConfigurationPropertiesManagement
getPropertyStoreAccessor
in interface
ConfigurationPropertiesManagement
protected void setPropertiesToStore(PropertyProvider provider) throws JndiPropertyStoreException
AbstractConfigurationPropertiesManagement
setPropertiesToStore
in class
AbstractConfigurationPropertiesManagement
provider
- the provider with the properties to be stored.
JndiPropertyStoreException
protected void addDefinitionsToStore(PropertyProvider properties) throws JndiPropertyStoreException
Usually configurations that are backed up by an external (e.g. persistent) store do not want to store definitions here. So they override this method with a no-op.
addDefinitionsToStore
in class
AbstractConfigurationPropertiesManagement
properties
- the properties that are to be registered as definitions.
JndiPropertyStoreException
public SerializableConfigurationPropertiesManagement toSerializable()
ConfigurationProperties
toSerializable
in interface
ConfigurationProperties
toSerializable
in interface
ConfigurationPropertiesManagement
ConfigurationPropertiesProxy
,
ConfigurationPropertiesManagementProxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |