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)
ExternalizerresolveXPath in interface Externalizerpublic String resolveURL(String annotationValue, Method method, Object[] args)
ExternalizerresolveURL in interface ExternalizerCopyright © 2012-12-21-2017. All Rights Reserved.