com.atlassian.jira.event
Class DefaultListenerManager

java.lang.Object
  extended by com.atlassian.jira.event.DefaultListenerManager
All Implemented Interfaces:
ListenerManager, Startable, JiraManager

public class DefaultListenerManager
extends java.lang.Object
implements ListenerManager, Startable


Constructor Summary
DefaultListenerManager(com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 java.util.Map<java.lang.String,JiraListener> getListeners()
          Returns a map of listeners.
 void onClearCache(ClearCacheEvent event)
           
 void refresh()
          Reloads the map of listeners from the db.
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultListenerManager

public DefaultListenerManager(com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

start

public void start()
           throws java.lang.Exception
Description copied from interface: Startable
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Specified by:
start in interface Startable
Throws:
java.lang.Exception - Allows implementations to throw an Exception.

onClearCache

@EventListener
public void onClearCache(ClearCacheEvent event)

getListeners

public java.util.Map<java.lang.String,JiraListener> getListeners()
Description copied from interface: ListenerManager
Returns a map of listeners. The map contains mappings from the listener name to listener class.

Specified by:
getListeners in interface ListenerManager
Returns:
A map with name -> class mappings.

refresh

public void refresh()
Description copied from interface: ListenerManager
Reloads the map of listeners from the db.

Specified by:
refresh in interface ListenerManager


Copyright © 2002-2010 Atlassian. All Rights Reserved.