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

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

@ThreadSafe
public class AutodetectDataSourceConfigurationPropertiesFactory
     
     
extends AbstractConfigurationPropertiesFactory< ConfigurationPropertiesManagement>

Factory, configured by properties in the "META-INF/smartics-properties/datasource.properties" folder, to create instances of DataSourceConfigurationProperties.

Please refer to DataSourceConfiguration for configuration options.

See Also:
Serialized Form

Constructor Summary
AutodetectDataSourceConfigurationPropertiesFactory()
          Default constructor.
AutodetectDataSourceConfigurationPropertiesFactory(DataSourceConfiguration configuration)
          Constructor that enables the configuration to be set.
 
Method Summary
protected  ConfigurationPropertiesManagement createNewConfiguration(ConfigurationKey<?> key)
          Creates an empty instance of the configuration properties instance.
 
Methods inherited from class de.smartics.properties.spi.config.support.AbstractConfigurationPropertiesFactory
addPropertyProviders, addPropertyProviders, addRootLocations, addRootLocations, addRootUrls, create, createDefault, createDefaultManagement, createManagement, getArtifactRef, getFactoryConfiguration, getId, 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

AutodetectDataSourceConfigurationPropertiesFactory

public AutodetectDataSourceConfigurationPropertiesFactory()
Default constructor.


AutodetectDataSourceConfigurationPropertiesFactory

public AutodetectDataSourceConfigurationPropertiesFactory(DataSourceConfiguration configuration)
Constructor that enables the configuration to be set.

Parameters:
configuration - the configuration to use for this factory.
Method Detail

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.