public class PropertyFileExternalizer extends Object implements Externalizer
Constructor and Description |
---|
PropertyFileExternalizer(File propertyFile)
Constructor for a given property file.
|
PropertyFileExternalizer(File propertyFile,
boolean useXmlFormat)
Constructor for a given property file with the option to choose XML format.
|
Modifier and Type | Method and Description |
---|---|
protected String |
findProperty(String key,
Method method,
Object[] args) |
String |
resolveURL(String annotationValue,
Method method,
Object[] args)
Implement this method to provide an URL for a given method invocation.
|
String |
resolveXPath(String annotationValue,
Method method,
Object[] args)
Implement this method to provide a XPath expression for a given method invocation.
|
PropertyFileExternalizer |
setEncoding(String encodingName)
Setter for file encoding.
|
public PropertyFileExternalizer(File propertyFile)
propertyFile
- public PropertyFileExternalizer(File propertyFile, boolean useXmlFormat)
propertyFile
- useXmlFormat
- public PropertyFileExternalizer setEncoding(String encodingName)
encodingName
- public String resolveXPath(String annotationValue, Method method, Object[] args)
Externalizer
resolveXPath
in interface Externalizer
public String resolveURL(String annotationValue, Method method, Object[] args)
Externalizer
resolveURL
in interface Externalizer
Copyright © 2012-12-21-2016. All Rights Reserved.