Package com.atlassian.plugin.tracker
Interface PluginModuleTracker<M,T extends ModuleDescriptor<M>>
- All Known Implementing Classes:
DefaultPluginModuleTracker
public interface PluginModuleTracker<M,T extends ModuleDescriptor<M>>
Tracks enabled plugin module descriptors, focusing on fast reads. Patterned off the
ServiceTracker.- Since:
- 2.6.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacePluginModuleTracker.Customizer<M,T extends ModuleDescriptor<M>> Implement this to customize how and which descriptors are stored -
Method Summary
-
Method Details
-
getModuleDescriptors
- Returns:
- a snapshot of the currently tracked enabled module descriptors
-
getModules
Gets a snapshot of the currently tracked enabled module instances- Returns:
- The module instances
-
size
int size()- Returns:
- The number of module descriptors currently tracked. Should only be used for reporting purposes as it only reflects the size at exactly the calling time.
-
close
void close()Closes the tracker. Ensure you call this, or you may cause a memory leak.
-