public class JiraFailedPluginTracker extends Object implements com.atlassian.plugin.exception.PluginExceptionInterception, InitializingComponent
This class is used to track what plugins are expected to be loaded, what did load as expected and what failed to load.
Modifier and Type | Class and Description |
---|---|
static class |
JiraFailedPluginTracker.PluginInfo
A simple holder class of plugin information
|
static class |
JiraFailedPluginTracker.ServiceDependency
Represents a dependency that a plugin has to some other service
|
Constructor and Description |
---|
JiraFailedPluginTracker(com.atlassian.plugin.event.PluginEventManager pluginEventManager) |
Modifier and Type | Method and Description |
---|---|
void |
afterInstantiation() |
Iterable<JiraFailedPluginTracker.PluginInfo> |
getFailedPlugins() |
Iterable<JiraFailedPluginTracker.PluginInfo> |
getUnaccountedForPlugins() |
boolean |
onEnableException(com.atlassian.plugin.Plugin plugin,
Exception pluginException) |
void |
onPluginContainerFailed(com.atlassian.plugin.event.events.PluginContainerFailedEvent event)
Called when the plugin container for the bundle has failed to be created.
|
void |
onPluginDisabledEvent(com.atlassian.plugin.event.events.PluginDisabledEvent disabledEvent) |
void |
onPluginEnabledEvent(com.atlassian.plugin.event.events.PluginEnabledEvent enabledEvent) |
void |
onServiceDependencyWaitEnded(com.atlassian.plugin.osgi.event.PluginServiceDependencyWaitEndedEvent event) |
void |
onServiceDependencyWaitStarting(com.atlassian.plugin.osgi.event.PluginServiceDependencyWaitStartingEvent event) |
void |
trackLoadingPlugin(com.atlassian.plugin.Plugin plugin,
com.atlassian.plugin.PluginArtifact pluginArtifact)
This is called then the PluginFactory has decided it can create a plugin BUT it hasn't started it and hence
resolved its dependencies
|
public JiraFailedPluginTracker(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
public void afterInstantiation() throws Exception
afterInstantiation
in interface InitializingComponent
Exception
public void trackLoadingPlugin(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.PluginArtifact pluginArtifact)
plugin
- the plugin that has been created by the PluginFactory but not resolvedpluginArtifact
- the artifact used to load this pluginpublic void onPluginEnabledEvent(com.atlassian.plugin.event.events.PluginEnabledEvent enabledEvent)
public void onPluginDisabledEvent(com.atlassian.plugin.event.events.PluginDisabledEvent disabledEvent)
public void onServiceDependencyWaitStarting(com.atlassian.plugin.osgi.event.PluginServiceDependencyWaitStartingEvent event)
public void onServiceDependencyWaitEnded(com.atlassian.plugin.osgi.event.PluginServiceDependencyWaitEndedEvent event)
public void onPluginContainerFailed(com.atlassian.plugin.event.events.PluginContainerFailedEvent event) throws com.atlassian.plugin.IllegalPluginStateException
event
- The plugin container failed eventcom.atlassian.plugin.IllegalPluginStateException
- If the plugin key hasn't been set yetpublic boolean onEnableException(com.atlassian.plugin.Plugin plugin, Exception pluginException)
onEnableException
in interface com.atlassian.plugin.exception.PluginExceptionInterception
public Iterable<JiraFailedPluginTracker.PluginInfo> getFailedPlugins()
public Iterable<JiraFailedPluginTracker.PluginInfo> getUnaccountedForPlugins()
Copyright © 2002-2024 Atlassian. All Rights Reserved.