com.atlassian.jira.event
Class SubvertedListenerManager

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

public class SubvertedListenerManager
extends Object
implements ListenerManager


Constructor Summary
SubvertedListenerManager()
           
 
Method Summary
 JiraListener createListener(String name, Class<? extends JiraListener> clazz)
          Creates a new JiraListener.
 void deleteListener(Class<? extends JiraListener> clazz)
          Deletes any listeners of the given class.
 Map getListeners()
          Returns a map of listeners.
 void refresh()
          Reloads the map of listeners from the db.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubvertedListenerManager

public SubvertedListenerManager()
Method Detail

getListeners

public Map 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.

createListener

public JiraListener createListener(String name,
                                   Class<? extends JiraListener> clazz)
Description copied from interface: ListenerManager
Creates a new JiraListener.

Specified by:
createListener in interface ListenerManager
Parameters:
name - The name of the Listener
clazz - The class of the Listener.
Returns:
the newly created JiraListener

deleteListener

public void deleteListener(Class<? extends JiraListener> clazz)
Description copied from interface: ListenerManager
Deletes any listeners of the given class.

Specified by:
deleteListener in interface ListenerManager
Parameters:
clazz - The class of the Listener.

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-2012 Atlassian. All Rights Reserved.