Class WeightedPluginModuleTracker<M,​D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.descriptors.WeightedDescriptor>

  • Type Parameters:
    M - the module type
    D - the module descriptor type
    All Implemented Interfaces:
    com.atlassian.plugin.tracker.PluginModuleTracker<M,​D>

    public class WeightedPluginModuleTracker<M,​D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.descriptors.WeightedDescriptor>
    extends Object
    implements com.atlassian.plugin.tracker.PluginModuleTracker<M,​D>
    Tracks module descriptors in sorted order, based on their weights.
    Since:
    5.3
    See Also:
    WeightedDescriptor
    • Constructor Detail

      • WeightedPluginModuleTracker

        public WeightedPluginModuleTracker​(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                           com.atlassian.plugin.event.PluginEventManager pluginEventManager,
                                           Class<D> moduleDescriptorClass)
    • Method Detail

      • create

        public static <M,​D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.descriptors.WeightedDescriptor> WeightedPluginModuleTracker<M,​D> create​(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                                                                                                                                                                           com.atlassian.plugin.event.PluginEventManager pluginEventManager,
                                                                                                                                                                                           Class<D> moduleDescriptorClass)
      • getModuleDescriptors

        public Iterable<D> getModuleDescriptors()
        Specified by:
        getModuleDescriptors in interface com.atlassian.plugin.tracker.PluginModuleTracker<M,​D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.descriptors.WeightedDescriptor>
      • getModules

        public Iterable<M> getModules()
        Specified by:
        getModules in interface com.atlassian.plugin.tracker.PluginModuleTracker<M,​D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.descriptors.WeightedDescriptor>
      • size

        public int size()
        Specified by:
        size in interface com.atlassian.plugin.tracker.PluginModuleTracker<M,​D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.descriptors.WeightedDescriptor>
      • close

        public void close()
        Specified by:
        close in interface com.atlassian.plugin.tracker.PluginModuleTracker<M,​D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.descriptors.WeightedDescriptor>
      • onPluginModuleEnabled

        public void onPluginModuleEnabled​(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
      • onPluginModuleDisabled

        public void onPluginModuleDisabled​(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
      • onPluginDisabled

        public void onPluginDisabled​(com.atlassian.plugin.event.events.PluginDisabledEvent event)