com.atlassian.confluence.util.diffs
Class MergerListener

java.lang.Object
  extended by com.atlassian.confluence.util.diffs.MergerListener

public class MergerListener
extends java.lang.Object


Constructor Summary
MergerListener(MergerUpdater mergerManager)
          This class listens for plugin events and updates the mergerManager when a change has happened.
 
Method Summary
 void handlePluginEvent(PluginEvent e)
          Handle the event, will rebuild the cache.
 void handlePluginFrameworkStarted(PluginFrameworkStartedEvent e)
          This is needed to get any bundled merger into the manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergerListener

public MergerListener(MergerUpdater mergerManager)
This class listens for plugin events and updates the mergerManager when a change has happened.

Parameters:
mergerManager - the merger manager to use
Method Detail

handlePluginEvent

@EventListener
public void handlePluginEvent(PluginEvent e)
Handle the event, will rebuild the cache. Note that this listens to all events, as at the time of implementation disabling a plugin does not fire a PluginModuleDisabled event.

Parameters:
e - PluginEvent all plugin events captured.

handlePluginFrameworkStarted

@EventListener
public void handlePluginFrameworkStarted(PluginFrameworkStartedEvent e)
This is needed to get any bundled merger into the manager.

Parameters:
e - PluginFrameworkStartedEvent indicates that the pluginframework is up and we should update our cache.


Copyright © 2003-2014 Atlassian. All Rights Reserved.