|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationPropertiesManagementFactory
Factory to create instances of ConfigurationPropertiesManagement
.
Method Summary | |
---|---|
String |
addRootUrls(ArtifactId artifactId) Adds the URLs derived from the dependencies provided by the given artifactId to the locations to search for property declarations and definitions. |
ConfigurationPropertiesManagement |
create(ConfigurationKey<?> key) Creates the configuration properties instance for the given key. |
ArtifactRef |
getArtifactRef(String artifactId) Returns the artifact reference by its short ID. |
void |
release() Releases resources acquired by this instance. |
ConfigurationPropertiesManagement |
remove(ConfigurationKey<?> key) Removes the configuration with the given key from the cache. |
Methods inherited from interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory |
---|
addPropertyProviders, addPropertyProviders, addRootLocations, addRootLocations, createDefault, createDefaultManagement, createManagement, getFactoryConfiguration, getRegisteredConfigurationKeys, getRegistry, materialize |
Method Detail |
---|
ConfigurationPropertiesManagement create(ConfigurationKey<?> key) throws NullPointerException
create
in interface
ConfigurationPropertiesFactory
key
- the key to identify the requested configuration.
NullPointerException
- if
key
is
null
.
ConfigurationPropertiesFactory.createManagement(ConfigurationKey)
,
EnvAppConfigurationKeyHelper
ConfigurationPropertiesManagement remove(ConfigurationKey<?> key) throws NullPointerException
key
- the key of the configuration to remove.
NullPointerException
- if
key
is
null
.
void release()
String addRootUrls(ArtifactId artifactId) throws de.smartics.util.lang.NullArgumentException, RepositoryException, CompoundConfigurationException
artifactId
to the locations to search for property
declarations
and definitions. Property definitions are e.g. properties files or similar resources that define the actual value of a property.
Adding URLs only affects later creations of ConfigurationProperties
instances.
artifactId
- the reference to the property resources.
de.smartics.util.lang.NullArgumentException
- if
artifactId
is
null
.
RepositoryException
- on any problem accessing the remote repository.
CompoundConfigurationException
- if loading property resources encountered problems.
@CheckForNull ArtifactRef getArtifactRef(String artifactId) throws NullPointerException
artifactId
is returned.
artifactId
- the GAV concatenated and separated by colons.
null
if there is no artifact reference with the given
artifactId
registered.
NullPointerException
- if
artifactId
is
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |