public interface IPropertiesFactory
locating Properties
objects, which are a thin wrapper around ValueMap and is used to locate localized
messages.
The clearCache() method should remove any cached references to properties objects used
by an implementation, so that load(Class, String) gets the freshest instance possible.
Listeners are related to cached properties and should be used
to inform observers when sets of properties are reloaded.
Properties| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IPropertiesChangeListener listener)
Add a listener which will be called when a change to the underlying resource stream (e.g.
|
void |
clearCache()
Remove all cached properties.
|
Properties |
load(Class<?> clazz,
String path)
Load the properties associated with the path
|
void addListener(IPropertiesChangeListener listener)
listener - void clearCache()
Properties load(Class<?> clazz, String path)
clazz - The class requesting the propertiespath - The path to identify the resourceCopyright © 2006–2014 Apache Software Foundation. All rights reserved.