Class WeightedPluginModuleTracker<M,D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.api.descriptors.WeightedDescriptor>
java.lang.Object
com.atlassian.confluence.plugin.descriptor.WeightedPluginModuleTracker<M,D>
- Type Parameters:
M- the module typeD- 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.api.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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.plugin.tracker.PluginModuleTracker
com.atlassian.plugin.tracker.PluginModuleTracker.Customizer<M extends Object,T extends com.atlassian.plugin.ModuleDescriptor<M>> -
Constructor Summary
ConstructorsConstructorDescriptionWeightedPluginModuleTracker(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.event.PluginEventManager pluginEventManager, Class<D> moduleDescriptorClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static <M,D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.api.descriptors.WeightedDescriptor>
WeightedPluginModuleTracker<M,D> create(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.event.PluginEventManager pluginEventManager, Class<D> moduleDescriptorClass) voidonPluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent event) voidonPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) voidonPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) intsize()
-
Constructor Details
-
WeightedPluginModuleTracker
-
-
Method Details
-
create
public static <M,D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.api.descriptors.WeightedDescriptor> WeightedPluginModuleTracker<M,D> create(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.event.PluginEventManager pluginEventManager, Class<D> moduleDescriptorClass) -
getModuleDescriptors
-
getModules
-
size
public int size() -
close
public void close() -
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)
-