Annotation Based Event Listener Example
Confluence 3.3 and later
This page gives the example code for an annotation-based event listener, as described in the page about event listener plugins.
The methods must be annotated with the
com.atlassian.event.api.EventListener annotation and only take a single parameter of the type of event this method is to service.
The event listener must also register itself with the
EventPublisher which can be injected into the constructor. The event listener will need to implement the DisposableBean interface to unregister itself when the plugin is disabled or uninstalled.
INFO: An annotation-based event listener does not need to implement the