|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.resource.PropertiesFactory
public class PropertiesFactory
Default implementation of IPropertiesFactory
which uses the
IResourceStreamLocator
as defined by IResourceSettings.getResourceStreamLocator()
to load the Properties
objects. Depending on the settings, it will assign
ModificationWatcher
s to the loaded resources to support reloading.
IResourceSettings.getPropertiesFactory()
Constructor Summary | |
---|---|
PropertiesFactory(Application application)
Construct. |
Method Summary | |
---|---|
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. |
protected java.util.Map |
getCache()
For subclasses to get access to the cache |
Properties |
load(java.lang.Class clazz,
java.lang.String path)
Load the properties associated with the path |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesFactory(Application application)
application
- Application for this properties factory.Method Detail |
---|
public void addListener(IPropertiesChangeListener listener)
IPropertiesFactory
addListener
in interface IPropertiesFactory
IPropertiesFactory.addListener(org.apache.wicket.resource.IPropertiesChangeListener)
public final void clearCache()
IPropertiesFactory
clearCache
in interface IPropertiesFactory
IPropertiesFactory.clearCache()
public Properties load(java.lang.Class clazz, java.lang.String path)
IPropertiesFactory
load
in interface IPropertiesFactory
clazz
- The class requesting the propertiespath
- The path to identify the resource
IPropertiesFactory.load(java.lang.Class, java.lang.String)
protected final java.util.Map getCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |