|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.config.transfer.PropertyProviderList
public final class PropertyProviderList
Collects property providers to make them accessible by the transfer process as a source of property definitions.
Constructor Summary | |
---|---|
PropertyProviderList() Default constructor. |
Method Summary | |
---|---|
void |
addPropertyDefinitions(DefinitionConfigParser<?> definitionConfigParser, ClassPathEnvironment env) Resolves the environment to property providers and adds them. |
void |
addPropertyProvider(PropertyProvider provider) Adds a property provider. |
Iterator<PropertyProvider> |
iterator() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyProviderList()
Method Detail |
---|
public void addPropertyProvider(PropertyProvider provider) throws NullPointerException
provider
- the provider to add.
NullPointerException
- if
provider
is
null
.
public void addPropertyDefinitions(DefinitionConfigParser<?> definitionConfigParser, ClassPathEnvironment env) throws NullPointerException, TransferException
definitionConfigParser
- the parser to read
definition.xml
files to determine the configuration keys for properties files.
env
- the environment containing properties files. Each of them will be turned into a provider and added to the list.
NullPointerException
- if
env
is
null
.
TransferException
- if any of the artifacts provided in the environment
env
is not valid. An artifact is not valid, if the configuration key for a properties file cannot be determined. Also thrown if a properties file cannot be mapped to a configuration key.
public Iterator<PropertyProvider> iterator()
iterator
in interface
Iterable<PropertyProvider>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |