Class AbstractPropertiesFactory
java.lang.Object
com.arjuna.common.util.propertyservice.AbstractPropertiesFactory
- Direct Known Subclasses:
PropertiesFactorySax
,PropertiesFactoryStax
This class loads properties according to the file location, substitution and override rules described in the docs.
- Author:
- Richard A. Begg (richard.begg@arjuna.com), Gytis Trikleris
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the systems default properties, as read from the configuration file.getPropertiesFromFile
(String propertyFileName, ClassLoader classLoader) Returns the config properties read from a specified location.protected abstract Properties
loadFromXML
(Properties p, InputStream is)
-
Constructor Details
-
AbstractPropertiesFactory
public AbstractPropertiesFactory()
-
-
Method Details
-
getDefaultProperties
Returns the systems default properties, as read from the configuration file.- Returns:
- the configuration Properties
-
getPropertiesFromFile
Returns the config properties read from a specified location.- Parameters:
propertyFileName
- the file name. If relative, this is located using the FileLocator algorithm.- Returns:
- the Properties loaded from the specified source.
-
loadFromXML
- Throws:
IOException
-