Class FilePropertiesSource
- java.lang.Object
-
- com.marklogic.client.ext.helper.LoggingObject
-
- com.marklogic.client.ext.tokenreplacer.FilePropertiesSource
-
- All Implemented Interfaces:
PropertiesSource
public class FilePropertiesSource extends LoggingObject implements PropertiesSource
Simple implementation of PropertiesSource that reads properties from a file.
-
-
Field Summary
-
Fields inherited from class com.marklogic.client.ext.helper.LoggingObject
logger
-
-
Constructor Summary
Constructors Constructor Description FilePropertiesSource(java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.PropertiesgetProperties()protected java.util.PropertiesloadPropertiesFromFile(java.io.File file)-
Methods inherited from class com.marklogic.client.ext.helper.LoggingObject
format
-
-
-
-
Method Detail
-
getProperties
public java.util.Properties getProperties()
- Specified by:
getPropertiesin interfacePropertiesSource
-
loadPropertiesFromFile
protected java.util.Properties loadPropertiesFromFile(java.io.File file)
- Parameters:
file-- Returns:
- a Properties instance based on properties from the given File.
-
-