de.smartics.properties.impl.config.jndi
Class JndiConfigurationPropertiesFactory

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

@ThreadSafe
public final class JndiConfigurationPropertiesFactory
     
     
extends AbstractConfigurationPropertiesFactory< ConfigurationPropertiesManagement>

Factory to create instances of JndiConfigurationProperties.

See Also:
Serialized Form

Constructor Summary
JndiConfigurationPropertiesFactory()
          Default constructor.
 
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

JndiConfigurationPropertiesFactory

public JndiConfigurationPropertiesFactory()
                                   throws IllegalStateException
Default constructor.

Throws:
IllegalStateException - if the JNDI context cannot be accessed.
Method Detail

createNewConfiguration

protected ConfigurationPropertiesManagement createNewConfiguration(ConfigurationKey<?> key)
                                                            throws NullPointerException,
                                                                   ConfigurationException,
                                                                   IllegalStateException
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.
IllegalStateException - if the JNDI context cannot be accessed to create a new configuration.


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