org.mmbase.module
Class WatchedReloadableModule

Package class diagram package WatchedReloadableModule
java.lang.Object
  extended by org.mmbase.util.functions.FunctionProvider
      extended by org.mmbase.util.functions.DescribedFunctionProvider
          extended by org.mmbase.module.Module
              extended by org.mmbase.module.ReloadableModule
                  extended by org.mmbase.module.WatchedReloadableModule
All Implemented Interfaces:
Descriptor

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 45319 2011-02-19 09:09:46Z michiel $
Author:
Michiel Meeuwissen

Field Summary
 
Fields inherited from class org.mmbase.module.Module
configurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIME
 
Fields inherited from class org.mmbase.util.functions.DescribedFunctionProvider
description, guiName, name
 
Fields inherited from class org.mmbase.util.functions.FunctionProvider
functions, getFunctions
 
Constructor Summary
WatchedReloadableModule()
           
WatchedReloadableModule(String name)
           
 
Method Summary
 void onload()
          prepares the module when loaded.
 
Methods inherited from class org.mmbase.module.ReloadableModule
reload, reloadConfiguration, reloadConfiguration
 
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, 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 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()

WatchedReloadableModule

public WatchedReloadableModule(String name)
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


MMBase2 Bridge 2.0-SNAPSHOT - 2013-05-29T22:05