|
||||||||||
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<PropertiesConfigurationProperties> de.smartics.properties.impl.config.properties.PropertiesConfigurationPropertiesFactory
@ThreadSafe public final class PropertiesConfigurationPropertiesFactory
Factory to create instances of PropertiesConfigurationProperties
.
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.
Constructor Summary | |
---|---|
PropertiesConfigurationPropertiesFactory() Default constructor. |
Method Summary | |
---|---|
PropertiesConfigurationProperties |
create(ApplicationId applicationId) Creates a configuration properties instance for an artificial environment. |
PropertiesConfigurationProperties |
createManagement(ApplicationId applicationId) Creates a configuration properties management instance for an artificial environment. |
protected PropertiesConfigurationProperties |
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 PropertiesConfigurationPropertiesFactory()
Method Detail |
---|
public PropertiesConfigurationProperties create(ApplicationId applicationId) throws NullPointerException, ConfigurationException
applicationId
- the identifier of the application whose properties are to be created.
null
.
NullPointerException
- if
applicationId
is
null
.
ConfigurationException
- on any problem loading the configuration properties.
public PropertiesConfigurationProperties createManagement(ApplicationId applicationId) throws NullPointerException, ConfigurationException
applicationId
- the identifier of the application whose properties are to be created.
null
.
NullPointerException
- if
applicationId
is
null
.
ConfigurationException
- on any problem loading the configuration properties.
protected PropertiesConfigurationProperties createNewConfiguration(ConfigurationKey<?> key) throws NullPointerException, ConfigurationException
AbstractConfigurationPropertiesFactory
createNewConfiguration
in class
AbstractConfigurationPropertiesFactory<PropertiesConfigurationProperties>
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 |