|
||||||||||
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<ConfigurationPropertiesManagement> de.smartics.properties.impl.config.resource.ResourceConfigurationPropertiesFactory
@ThreadSafe public final class ResourceConfigurationPropertiesFactory
Factory to create instances of ConfigurationPropertiesManagement
.
Constructor Summary | |
---|---|
ResourceConfigurationPropertiesFactory() Default constructor. |
Method Summary | |
---|---|
void |
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. |
protected ConfigurationPropertiesManagement |
createNewConfiguration(ConfigurationKey key) Creates an empty instance of the configuration properties instance. |
ArtifactRef |
getArtifactRef(String artifactId) Returns the artifact reference by its short ID. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class de.smartics.properties.spi.config.support.AbstractConfigurationPropertiesFactory |
---|
addPropertyProviders, addPropertyProviders, addRootLocations, addRootLocations, create, createDefault, createDefaultManagement, createManagement, getFactoryConfiguration, getRegisteredConfigurationKeys, getRegistry, matrialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceConfigurationPropertiesFactory()
Method Detail |
---|
public void 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.
protected ConfigurationPropertiesManagement createNewConfiguration(ConfigurationKey key) throws NullPointerException, ConfigurationException
AbstractConfigurationPropertiesFactory
createNewConfiguration
in class
AbstractConfigurationPropertiesFactory<ConfigurationPropertiesManagement>
key
- the key to the instance.
null
.
NullPointerException
- if
key
is
null
.
ConfigurationException
- if the configuration cannot be created.
@CheckForNull public 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
.
public String toString()
toString
in class
AbstractConfigurationPropertiesFactory<ConfigurationPropertiesManagement>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |