|
||||||||||
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<ClasspathConfigurationProperties> de.smartics.properties.impl.config.classpath.ClasspathConfigurationPropertiesFactory
@ThreadSafe public final class ClasspathConfigurationPropertiesFactory
Factory to create instances of ClasspathConfigurationProperties
.
This implementation fetches the properties information from the classpath available at runtime. Therefore the environment identifier of the passed in configuration key is irrelevant to this implementation, since the environment is always the local runtime of the node it is running on. The application identifier is also artificial. Use this factory for a small application where the distinction between different environments is not useful.
Constructor Summary | |
---|---|
ClasspathConfigurationPropertiesFactory() Default constructor. |
Method Summary | |
---|---|
ClasspathConfigurationProperties |
create() Creates a configuration properties instance for an artificial key. |
ClasspathConfigurationProperties |
createManagement() Creates a configuration properties management instance for an artificial key. |
protected ClasspathConfigurationProperties |
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, 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 ClasspathConfigurationPropertiesFactory()
Method Detail |
---|
public ClasspathConfigurationProperties create() throws ConfigurationException
null
.
ConfigurationException
- on any problem loading the configuration properties.
public ClasspathConfigurationProperties createManagement() throws ConfigurationException
null
.
ConfigurationException
- on any problem loading the configuration properties.
protected ClasspathConfigurationProperties createNewConfiguration(ConfigurationKey<?> key) throws NullPointerException, ConfigurationException
AbstractConfigurationPropertiesFactory
createNewConfiguration
in class
AbstractConfigurationPropertiesFactory<ClasspathConfigurationProperties>
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 |