org.mmbase.module
Class WatchedReloadableModule

java.lang.Object
  extended byorg.mmbase.util.functions.FunctionProvider
      extended byorg.mmbase.module.Module
          extended byorg.mmbase.module.ReloadableModule
              extended byorg.mmbase.module.WatchedReloadableModule
Direct Known Subclasses:
ClusteringModule, CrontabModule

public abstract class WatchedReloadableModule
extends ReloadableModule

This Reloadable Module extension reloads its configuration and calls reload, automaticly if the module XML changes.

Since:
MMBase-1.8
Version:
$Id: WatchedReloadableModule.java,v 1.4 2006/06/19 08:38:59 michiel Exp $
Author:
Michiel Meeuwissen

Field Summary
 
Fields inherited from class org.mmbase.module.Module
getMaintainerFunction, getVersionFunction
 
Fields inherited from class org.mmbase.util.functions.FunctionProvider
functions, getFunctions
 
Constructor Summary
WatchedReloadableModule()
           
 
Method Summary
 void onload()
          prepares the module when loaded. Onload must be overridden to execute methods that need to be performed when the module is loaded but before any other modules are initailized.
This method is called by Module.startModules(). You should not call onload() directly. On the onload of a reloadable module, a filewatcher is started.
 
Methods inherited from class org.mmbase.module.ReloadableModule
reload, reloadConfiguration, reloadConfiguration
 
Methods inherited from class org.mmbase.module.Module
getInitParameter, getInitParameters, getMaintainer, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModules, getName, getProperties, getProperty, getVersion, hasStarted, init, maintainance, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, startModule, startModules, state
 
Methods inherited from class org.mmbase.util.functions.FunctionProvider
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatchedReloadableModule

public WatchedReloadableModule()
Method Detail

onload

public void onload()
prepares the module when loaded. Onload must be overridden to execute methods that need to be performed when the module is loaded but before any other modules are initailized.
This method is called by Module.startModules(). You should not call onload() directly. On the onload of a reloadable module, a filewatcher is started. You should call super.onload if you need to override this.

Overrides:
onload in class Module


MMBase build 1.8.1.20060716