de.smartics.properties.impl.config.ds
Class DataSourceConfigurationPropertiesFactory

Package class diagram package DataSourceConfigurationPropertiesFactory
java.lang.Object
  extended by de.smartics.properties.spi.config.support.AbstractConfigurationPropertiesFactory<ConfigurationPropertiesManagement>
      extended by de.smartics.properties.impl.config.ds.DataSourceConfigurationPropertiesFactory
All Implemented Interfaces:
ConfigurationPropertiesFactory, Serializable

@ThreadSafe
public final class DataSourceConfigurationPropertiesFactory
     
     
extends AbstractConfigurationPropertiesFactory< ConfigurationPropertiesManagement>

Factory to create instances of DataSourceConfigurationProperties.

See Also:
Serialized Form

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, create, createDefault, createDefaultManagement, createManagement, getFactoryConfiguration, getRegisteredConfigurationKeys, getRegistry, matrialize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSourceConfigurationPropertiesFactory

public DataSourceConfigurationPropertiesFactory()
Default constructor.

Method Detail

setManager

public void setManager(ConfigurationKey configurationKey,
                       PropertiesStore manager)
                throws NullPointerException
Sets the proxy to the data source manager that provides properties information.

Either use this or setDataSourceProxy(ConfigurationKey, DataSourceProxy).

Parameters:
configurationKey - the identifier of the configuration the provided properties are part of.
manager - the manager of the data source that provides properties information.
Throws:
NullPointerException - if configurationKey or manager is null.

setDataSourceProxy

public void setDataSourceProxy(ConfigurationKey configurationKey,
                               DataSourceProxy dataSourceProxy)
                        throws NullPointerException
Sets the proxy to the data source that provides properties information.

Either use this or setManager(ConfigurationKey, PropertiesStore).

Parameters:
configurationKey - the identifier of the configuration the provided properties are part of.
dataSourceProxy - the proxy to the data source that provides properties information.
Throws:
NullPointerException - if configurationKey or dataSourceProxy is null.

createNewConfiguration

protected ConfigurationPropertiesManagement createNewConfiguration(ConfigurationKey key)
                                                            throws NullPointerException,
                                                                   ConfigurationException
Description copied from class: AbstractConfigurationPropertiesFactory
Creates an empty instance of the configuration properties instance. Where the public create methods may consult a cache, this method is required to create a new instance.

Specified by:
createNewConfiguration in class AbstractConfigurationPropertiesFactory<ConfigurationPropertiesManagement>
Parameters:
key - the key to the instance.
Returns:
the instance. Never null.
Throws:
NullPointerException - if key is null.
ConfigurationException - if the configuration cannot be created.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.