|
||||||||||
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.AbstractConfigurationPropertiesFactory<ConfigurationPropertiesManagement> de.smartics.properties.impl.config.ds.DataSourceConfigurationPropertiesFactory
@ThreadSafe public final class DataSourceConfigurationPropertiesFactory
Factory to create instances of DataSourceConfigurationProperties
to access properties in data sources.
Constructor Summary | |
---|---|
DataSourceConfigurationPropertiesFactory() Default constructor. |
Method Summary | |
---|---|
protected ConfigurationPropertiesManagement |
createNewConfiguration(ConfigurationKey<?> key) Creates an empty instance of the configuration properties instance. |
void |
setDataSourceProxy(ConfigurationKey<?> configurationKey, DataSourceProxy dataSourceProxy) Sets the proxy to the data source that provides properties information. |
void |
setManager(ConfigurationKey<?> configurationKey, PropertiesStore manager) Sets the proxy to the data source manager that provides properties information. |
Methods inherited from class de.smartics.properties.spi.config.support.AbstractConfigurationPropertiesFactory |
---|
addPropertyProviders, addPropertyProviders, addRootLocations, addRootLocations, addRootUrls, create, createDefault, createDefaultManagement, createManagement, getArtifactRef, getFactoryConfiguration, getRegisteredConfigurationKeys, getRegistry, materialize, release, remove, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataSourceConfigurationPropertiesFactory()
Method Detail |
---|
public void setManager(ConfigurationKey<?> configurationKey, PropertiesStore manager) throws NullPointerException
Either use this or setDataSourceProxy(ConfigurationKey, DataSourceProxy)
.
configurationKey
- the identifier of the configuration the provided properties are part of.
manager
- the manager of the data source that provides properties information.
NullPointerException
- if
configurationKey
or
manager
is
null
.
public void setDataSourceProxy(ConfigurationKey<?> configurationKey, DataSourceProxy dataSourceProxy) throws NullPointerException
Either use this or setManager(ConfigurationKey, PropertiesStore)
.
configurationKey
- the identifier of the configuration the provided properties are part of.
dataSourceProxy
- the proxy to the data source that provides properties information.
NullPointerException
- if
configurationKey
or
dataSourceProxy
is
null
.
protected ConfigurationPropertiesManagement createNewConfiguration(ConfigurationKey<?> key) throws NullPointerException, ConfigurationException
AbstractConfigurationPropertiesFactory
createNewConfiguration
in class
AbstractConfigurationPropertiesFactory<ConfigurationPropertiesManagement>
key
- the key to the instance.
null
.
NullPointerException
- if
key
is
null
.
ConfigurationException
- if the configuration cannot be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |