Plugins
Plugins implement the de.odysseus.calyxo.control.Plugin interface. When the module gets loaded, it will instantiate the declared plugins and call their
public void init( PluginConfig config, PluginContext context) throws Exception;
method. The de.odysseus.calyxo.control.conf.PluginConfig interface reflects the plugin's configuration and provides methods to access its parameters.
The de.odysseus.calyxo.control.PluginContext class has methods
- setFilterClass(String name, Class clazz) to register a filter class under some name. A registered filter class can be referenced by name using <filter name="..."> declarations. See the section on filter configurations for details.
- setDispatcher(String name, Dispatcher dispatcher) to register a dispatcher under some name. Custom dispatchers must be registered before they can be referenced using <action dispatcher="..."> and <dispatch dispatcher="..."> declarations.
- setDefaultDispatcher(Dispatcher dispatcher) to set the default dispatcher.
- setDefaultActionClass(Class clazz) to set the default action class. The module will use this class if an <action> element does not specify the class attribute.
Furthermore, the getModuleContext() method is used to access the module context.


