|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.coin.adapter.CommonsConfigurationPropertiesAdapter
public class CommonsConfigurationPropertiesAdapter
Loads configuration properties using Apache Commons configuration. TODO implementation
Constructor Summary | |
---|---|
CommonsConfigurationPropertiesAdapter(File file)
Convenience constructor. |
|
CommonsConfigurationPropertiesAdapter(InputStream inputStream)
Constructor. |
|
CommonsConfigurationPropertiesAdapter(URL url)
Convenience constructor. |
Method Summary | |
---|---|
Map<String,Object> |
getProperties()
Returns a map of properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommonsConfigurationPropertiesAdapter(InputStream inputStream)
inputStream
- input stream to load properties from; cannot be null
org.ops4j.lang.NullArgumentException
- - If input stream is nullpublic CommonsConfigurationPropertiesAdapter(File file) throws FileNotFoundException
file
- file containing properties
FileNotFoundException
- - If file does not exist or an input stream cannot be generated out of it
org.ops4j.lang.NullArgumentException
- - If file is nullpublic CommonsConfigurationPropertiesAdapter(URL url) throws IOException
url
- url targeting properties
IOException
- - If an input stream cannot be generated out of the url
org.ops4j.lang.NullArgumentException
- - If url is nullMethod Detail |
---|
public Map<String,Object> getProperties()
PropertiesAdapter
getProperties
in interface PropertiesAdapter
PropertiesAdapter.getProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |