|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
ModificationWatchers to the loaded resources to support reloading.
IResourceSettings.getPropertiesFactory()| Nested Class Summary | |
|---|---|
class |
PropertiesFactory.AbstractPropertiesLoader
|
static interface |
PropertiesFactory.IPropertiesLoader
|
class |
PropertiesFactory.PropertiesFilePropertiesLoader
|
class |
PropertiesFactory.XmlFilePropertiesLoader
|
| 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<java.lang.String,Properties> |
getCache()
For subclasses to get access to the cache |
java.util.List<PropertiesFactory.IPropertiesLoader> |
getPropertiesLoaders()
Gets the List of properties loader. |
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 java.util.List<PropertiesFactory.IPropertiesLoader> getPropertiesLoaders()
List of properties loader. You may add or remove properties loaders at your
will.
List of properties loaderpublic void addListener(IPropertiesChangeListener listener)
IPropertiesFactory
addListener in interface IPropertiesFactoryIPropertiesFactory.addListener(org.apache.wicket.resource.IPropertiesChangeListener)public final void clearCache()
IPropertiesFactory
clearCache in interface IPropertiesFactoryIPropertiesFactory.clearCache()
public Properties load(java.lang.Class<?> clazz,
java.lang.String path)
IPropertiesFactory
load in interface IPropertiesFactoryclazz - The class requesting the propertiespath - The path to identify the resource
IPropertiesFactory.load(java.lang.Class, java.lang.String)protected final java.util.Map<java.lang.String,Properties> getCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||