Interface PropertiesLoader
-
- All Known Implementing Classes:
AbstractPropertiesLoader
,ChainedPropertiesLoader
,FilePropertiesLoader
,FilterPropertiesLoader
,JndiPropertiesLoader
public interface PropertiesLoader
A
PropertiesLoader
loadsPropertiesResource
s and returns the contained properties as aProperties
object.The concrete implementation should specify whether it can be used in several threads concurrently or not.
- Author:
- sts
- See Also:
PropertiesResource
,Properties
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Properties
load(PropertiesResource propertiesResource)
Loads the givenPropertiesResource
if present.java.util.Map<java.lang.String,java.lang.String>
loadAsMap(PropertiesResource propertiesResource)
Loads the givenPropertiesResource
if present.
-
-
-
Method Detail
-
load
java.util.Properties load(PropertiesResource propertiesResource) throws ConfigurationException
Loads the givenPropertiesResource
if present. Returns the properties as aProperties
object.- Parameters:
propertiesResource
- thePropertiesResource
to load.- Returns:
- the loaded
Properties
- Throws:
ConfigurationException
- if thePropertiesResource
could not be loaded.- See Also:
PropertiesResource
,Properties
-
loadAsMap
java.util.Map<java.lang.String,java.lang.String> loadAsMap(PropertiesResource propertiesResource) throws ConfigurationException
Loads the givenPropertiesResource
if present. Returns the properties as aMap
object.- Parameters:
propertiesResource
- thePropertiesResource
to load.- Returns:
- the loaded
Map
- Throws:
ConfigurationException
- if thePropertiesResource
could not be loaded.- See Also:
PropertiesResource
,Properties
-
-