public final class ApplicationEventListener extends Object
Application specific events.
| Constructor and Description |
|---|
ApplicationEventListener(com.atlassian.event.api.EventPublisher publisher)
Create the event listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
Listens for when a plugin module is disabled and fires an
ApplicationUndefinedEvent if it is relevant. |
void |
pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
Listens for when a plugin module is enabled and fires an
ApplicationDefinedEvent if it is relevant. |
void |
register()
Register the listener with the event bus.
|
public ApplicationEventListener(com.atlassian.event.api.EventPublisher publisher)
publisher - the bus to publish any events on.@EventListener public void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
ApplicationUndefinedEvent if it is relevant.event - the event to check.@EventListener public void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
ApplicationDefinedEvent if it is relevant.event - the event to check.public void register()
Copyright © 2018 Atlassian. All rights reserved.