public interface

PluginModuleTracker

com.atlassian.plugin.tracker.PluginModuleTracker<M, T extends com.atlassian.plugin.ModuleDescriptor<M>>
Known Indirect Subclasses

Class Overview

Tracks enabled plugin module descriptors, focusing on fast reads. Patterned off the org.osgi.util.tracker.ServiceTracker.

Summary

Nested Classes
interface PluginModuleTracker.Customizer<M, T extends ModuleDescriptor<M>> Implement this to customize how and which descriptors are stored  
Public Methods
abstract void close()
Closes the tracker.
abstract Iterable<T> getModuleDescriptors()
abstract Iterable<M> getModules()
Gets a snapshot of the currently tracked enabled module instances
abstract int size()

Public Methods

public abstract void close ()

Closes the tracker. Ensure you call this, or you may cause a memory leak.

public abstract Iterable<T> getModuleDescriptors ()

Returns
  • a snapshot of the currently tracked enabled module descriptors

public abstract Iterable<M> getModules ()

Gets a snapshot of the currently tracked enabled module instances

Returns
  • The module instances

public abstract 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.