org.mmbase.module
Class ReloadableModule
java.lang.Object
org.mmbase.util.functions.FunctionProvider
org.mmbase.util.functions.DescribedFunctionProvider
org.mmbase.module.Module
org.mmbase.module.ReloadableModule
- All Implemented Interfaces:
- Descriptor
- Direct Known Subclasses:
- WatchedReloadableModule
public abstract class ReloadableModule
- extends Module
A Reloadable Module has a 'reload' method. You can extend your own modules from this. If you need
to happen the reload automaticly, then WatchedReloadableModule.
- Since:
- MMBase-1.8
- Version:
- $Id: ReloadableModule.java 44632 2011-01-06 22:19:55Z michiel $
- Author:
- Michiel Meeuwissen
| Methods inherited from class org.mmbase.module.Module |
addInitParameters, checkModules, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getStates, getVersion, hasModule, hasStarted, init, loadInitParameters, loadInitParameters, maintainance, onload, setInitParameter, setMaintainer, setState, setVersion, shutdown, shutdownModules, startModule, startModules |
| Methods inherited from class org.mmbase.util.functions.DescribedFunctionProvider |
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReloadableModule
public ReloadableModule()
ReloadableModule
public ReloadableModule(String name)
reloadConfiguration
protected boolean reloadConfiguration()
- Reloads the configuration file.
The module cannot change class, so if you change that in the XML, an error is logged, and nothing will
happen.
This method should be called from your extension if and when the configuration must be reloaded.
- Returns:
- Whether successful.
reloadConfiguration
protected boolean reloadConfiguration(ModuleReader parser)
reload
public abstract void reload()
- This method should be called when the module should be reloaded.
MMBase2 Bridge 2.0-SNAPSHOT - 2013-05-29T22:05