|
||||||||||
| 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 IPropertiesFactoryContext.getResourceStreamLocator()
to load the Properties objects. Depending on the settings, it will assign
ModificationWatchers to the loaded resources to support reloading.
IResourceSettings.getPropertiesFactory()| Constructor Summary | |
|---|---|
PropertiesFactory(IPropertiesFactoryContext context)
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 Map<String,Properties> |
getCache()
For subclasses to get access to the cache |
List<IPropertiesLoader> |
getPropertiesLoaders()
Gets the List of properties loader. |
Properties |
load(Class<?> clazz,
String path)
Load the properties associated with the path |
protected Map<String,Properties> |
newPropertiesCache()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesFactory(IPropertiesFactoryContext context)
context - context for properties factory| Method Detail |
|---|
public List<IPropertiesLoader> getPropertiesLoaders()
List of properties loader. You may add or remove properties loaders at your
will.
List of properties loaderprotected Map<String,Properties> newPropertiesCache()
public 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(Class<?> clazz,
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 Map<String,Properties> getCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||