org.kantega.jexmec.logging
Class LoggingPluginManagerListener<P>

java.lang.Object
  extended by org.kantega.jexmec.PluginManagerListener<P>
      extended by org.kantega.jexmec.logging.LoggingPluginManagerListener<P>

public class LoggingPluginManagerListener<P>
extends PluginManagerListener<P>

A plugin manager listener logging all events to an SLF4J logger


Constructor Summary
LoggingPluginManagerListener()
          Creates a LoggingPluginManagerListener logging to the default Logger, retrieved by calling LoggerFactory.getLogger(LoggingPluginManagerListener.class)
LoggingPluginManagerListener(org.slf4j.Logger logger)
          Creates a LoggingPluginManagerListener logging to the given Logger.
 
Method Summary
 void afterActivation(PluginRegistrationEvent<P> event)
           
 void afterClassLoaderAdded(PluginClassLoaderEvent<P> event)
           
 void afterClassLoaderRemoved(PluginClassLoaderEvent<P> event)
           
 void afterPassivation(PluginRegistrationEvent<P> event)
           
 void afterPluginManagerStarted(PluginManagerEvent<P> event)
           
 void afterPluginManagerStopped(PluginManagerEvent<P> event)
           
 void beforeActivation(PluginRegistrationEvent<P> event)
           
 void beforeClassLoaderAdded(PluginClassLoaderEvent<P> event)
           
 void beforeClassLoaderRemoved(PluginClassLoaderEvent<P> event)
           
 void beforePassivation(PluginRegistrationEvent<P> event)
           
 void beforePluginManagerStarted(PluginManagerEvent<P> event)
           
 void beforePluginManagerStopped(PluginManagerEvent<P> event)
           
 void pluginLoadingFailedWithException(PluginLoadingExceptionEvent<P> event)
           
 void pluginsUpdated(List<P> plugins)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingPluginManagerListener

public LoggingPluginManagerListener(org.slf4j.Logger logger)
Creates a LoggingPluginManagerListener logging to the given Logger.

Parameters:
logger - the Logger to log events to

LoggingPluginManagerListener

public LoggingPluginManagerListener()
Creates a LoggingPluginManagerListener logging to the default Logger, retrieved by calling LoggerFactory.getLogger(LoggingPluginManagerListener.class)

Method Detail

beforePluginManagerStarted

public void beforePluginManagerStarted(PluginManagerEvent<P> event)
Overrides:
beforePluginManagerStarted in class PluginManagerListener<P>

afterPluginManagerStarted

public void afterPluginManagerStarted(PluginManagerEvent<P> event)
Overrides:
afterPluginManagerStarted in class PluginManagerListener<P>

beforePluginManagerStopped

public void beforePluginManagerStopped(PluginManagerEvent<P> event)
Overrides:
beforePluginManagerStopped in class PluginManagerListener<P>

afterPluginManagerStopped

public void afterPluginManagerStopped(PluginManagerEvent<P> event)
Overrides:
afterPluginManagerStopped in class PluginManagerListener<P>

beforeClassLoaderAdded

public void beforeClassLoaderAdded(PluginClassLoaderEvent<P> event)
Overrides:
beforeClassLoaderAdded in class PluginManagerListener<P>

afterClassLoaderAdded

public void afterClassLoaderAdded(PluginClassLoaderEvent<P> event)
Overrides:
afterClassLoaderAdded in class PluginManagerListener<P>

beforeClassLoaderRemoved

public void beforeClassLoaderRemoved(PluginClassLoaderEvent<P> event)
Overrides:
beforeClassLoaderRemoved in class PluginManagerListener<P>

afterClassLoaderRemoved

public void afterClassLoaderRemoved(PluginClassLoaderEvent<P> event)
Overrides:
afterClassLoaderRemoved in class PluginManagerListener<P>

beforeActivation

public void beforeActivation(PluginRegistrationEvent<P> event)
Overrides:
beforeActivation in class PluginManagerListener<P>

afterActivation

public void afterActivation(PluginRegistrationEvent<P> event)
Overrides:
afterActivation in class PluginManagerListener<P>

beforePassivation

public void beforePassivation(PluginRegistrationEvent<P> event)
Overrides:
beforePassivation in class PluginManagerListener<P>

afterPassivation

public void afterPassivation(PluginRegistrationEvent<P> event)
Overrides:
afterPassivation in class PluginManagerListener<P>

pluginsUpdated

public void pluginsUpdated(List<P> plugins)
Overrides:
pluginsUpdated in class PluginManagerListener<P>

pluginLoadingFailedWithException

public void pluginLoadingFailedWithException(PluginLoadingExceptionEvent<P> event)
Overrides:
pluginLoadingFailedWithException in class PluginManagerListener<P>


Copyright © 2011. All Rights Reserved.