com.atlassian.plugin.exception
Class NoOpPluginExceptionInterception

java.lang.Object
  extended by com.atlassian.plugin.exception.NoOpPluginExceptionInterception
All Implemented Interfaces:
PluginExceptionInterception

public class NoOpPluginExceptionInterception
extends Object
implements PluginExceptionInterception

The equivalent of the old plugin system behaviour


Field Summary
static PluginExceptionInterception NOOP_INTERCEPTION
           
 
Method Summary
 boolean onEnableException(Plugin plugin, Exception pluginException)
          This is called when a plugin cant be enabled because an exception has been thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOOP_INTERCEPTION

public static final PluginExceptionInterception NOOP_INTERCEPTION
Method Detail

onEnableException

public boolean onEnableException(Plugin plugin,
                                 Exception pluginException)
Description copied from interface: PluginExceptionInterception
This is called when a plugin cant be enabled because an exception has been thrown.

This is an intercept point for the host to do something meaningful like better logging or failed plugin tracking.

It must NOT propagate the exception out of this block because this will stop the plugin system in general for starting.

Specified by:
onEnableException in interface PluginExceptionInterception
Parameters:
plugin - the plugin that has failed to be enabled
pluginException - the exception that was thrown during plugin enable
Returns:
true if the underlying plugin system should log a message. If this is false then the assumption is that host application has done the appropriate logging


Copyright © 2015 Atlassian. All rights reserved.