info.magnolia.module.observation
Class ObservationModule
java.lang.Object
info.magnolia.module.observation.ObservationModule
- All Implemented Interfaces:
- info.magnolia.module.ModuleLifecycle
public class ObservationModule
- extends Object
- implements info.magnolia.module.ModuleLifecycle
This is the configuration bean of the observation module. It has to be
registered in the module descriptor file under
src/main/resources/META-INF/magnolia/observation.xml.
The bean properties used in this class will be initialized by Content2Bean
which means that properties of in the node
config:/modules/observation/config/* are populated to this bean when the
module is initialized.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObservationModule
public ObservationModule()
getListenerConfigurations
public List getListenerConfigurations()
setListenerConfigurations
public void setListenerConfigurations(List listenerConfigurations)
addListenerConfiguration
public void addListenerConfiguration(ObservationConfiguration obs)
- Adds a new listener, activates the listener if it meets the conditions.
start
public void start(info.magnolia.module.ModuleLifecycleContext moduleLifecycleContext)
- Specified by:
start
in interface info.magnolia.module.ModuleLifecycle
stop
public void stop(info.magnolia.module.ModuleLifecycleContext moduleLifecycleContext)
- Will unregister all the registered eventlisteners before any change is performed, we wont lose instances this way.
- Specified by:
stop
in interface info.magnolia.module.ModuleLifecycle
Copyright © 2012 Magnolia International Ltd.. All Rights Reserved.