public class

PluginModuleTrackerFactory

extends Object
java.lang.Object
   ↳ com.atlassian.jira.plugin.util.PluginModuleTrackerFactory

Class Overview

Creates instances of a PluginModuleTracker using the DefaultPluginModuleTracker implementation.

Instances of PluginModuleTracker keep a cached set of module descriptors that is updated when plugins and plugin modules are enabled or disabled in the plugins system.

IMPORTANT: The set of descriptors returned by the plugin module trackers is a live list that is updated as plugins and plugin modules are enabled or disabled, it is not necessary to further cache the results obtained from a plugin module tracker.

See Also
  • PluginModuleTracker

Summary

Public Constructors
PluginModuleTrackerFactory(PluginAccessor pluginAccessor, PluginEventManager pluginEventManager)
Public Methods
<M, D extends ModuleDescriptor<M>> PluginModuleTracker<M, D> create(Class<D> moduleDescriptorClass, Customizer<M, D> pluginModuleTrackerCustomizer)

Creates an instance of a plugin module tracker for the specified module descriptor class.

<M, D extends ModuleDescriptor<M>> PluginModuleTracker<M, D> create(Class<D> moduleDescriptorClass)
Creates an instance of a plugin module tracker for the specified module descriptor class.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PluginModuleTrackerFactory (PluginAccessor pluginAccessor, PluginEventManager pluginEventManager)

Public Methods

public PluginModuleTracker<M, D> create (Class<D> moduleDescriptorClass, Customizer<M, D> pluginModuleTrackerCustomizer)

Creates an instance of a plugin module tracker for the specified module descriptor class.

It takes in a com.atlassian.plugin.tracker.PluginModuleTracker.Customizer customizer that enables the calling code to perform additional operations when a plugin module is added or removed from the module tracker.

Parameters
moduleDescriptorClass The module descriptor class to track.
pluginModuleTrackerCustomizer The customizer to use when module descriptors are added or removed from the module tracker.
Returns
  • An instance of a plugin module tracker for the specified module descriptor class.
See Also
  • com.atlassian.plugin.tracker.PluginModuleTracker.Customizer

public PluginModuleTracker<M, D> create (Class<D> moduleDescriptorClass)

Creates an instance of a plugin module tracker for the specified module descriptor class.

Parameters
moduleDescriptorClass The module descriptor class to track.
Returns
  • An instance of a plugin module tracker for the specified module descriptor class.