Class WeightedPluginModuleTracker<M,D extends com.atlassian.plugin.ModuleDescriptor<M> & com.atlassian.plugin.web.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.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
Constructors Constructor Description WeightedPluginModuleTracker(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.event.PluginEventManager pluginEventManager, Class<D> moduleDescriptorClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
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)
Iterable<D>
getModuleDescriptors()
Iterable<M>
getModules()
void
onPluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent event)
void
onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
void
onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
int
size()
-
-
-
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)
-
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)
-
-