| java.lang.Object | |
| ↳ | com.atlassian.jira.plugin.util.InvolvedPluginsTracker |
This is a glorified list of plugin keys that code can use to track what plugins are involved in its caches
On plugin events it can then ask if the event related to one of the tracked plugins This uses a CopyOnWriteArraySet under the covers to ensure that the list is as safe as possible. The assumption is that the reads and writes will be of low volume and the total number of plugins tracked will be smallish. In other words its anticipated that it will just work!| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| InvolvedPluginsTracker.PluginInfo | A simple class that contains plugin key and pluginVersion. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Clear the underlying set of tracked plugins
| |||||||||||
The hashcode of this object will be stable so long it is tracking the same versions of the same plugins
| |||||||||||
Returns true if the plugin that this ModuleDescriptor belongs to is being tracked
| |||||||||||
Returns true if the plugin is being tracked
| |||||||||||
Returns true if the plugin pointed to by the moduleDescriptor contains in it a 1 or module descriptors with the target
module descriptor class.
| |||||||||||
Returns true if the plugin pointed to by the moduleDescriptor contains in it a 1 or modules with the target
module descriptor class.
| |||||||||||
Returns true if the plugin contains resources of the specified type, for example "i18n" resource types
| |||||||||||
Returns true if the underlying plugin contains resources of the specified type, for example "i18n" resource
types
| |||||||||||
Tracks a plugin as being involved
| |||||||||||
Tracks a plugin as being involved via its
ModuleDescriptor | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Clear the underlying set of tracked plugins
The hashcode of this object will be stable so long it is tracking the same versions of the same plugins
Returns true if the plugin that this ModuleDescriptor belongs to is being tracked
| moduleDescriptor | the ModuleDescriptor of the plugin in play |
|---|
Returns true if the plugin is being tracked
| plugin | the plugin in play |
|---|
Returns true if the plugin pointed to by the moduleDescriptor contains in it a 1 or module descriptors with the target module descriptor class.
| plugin | the plugin play (typically from a plugin event) |
|---|---|
| targetModuleClass | the target capabilities you want to test |
Returns true if the plugin pointed to by the moduleDescriptor contains in it a 1 or modules with the target module descriptor class.
| moduleDescriptor | the module descriptor in play (typically from a plugin event) |
|---|---|
| targetModuleClass | the target capabilities you want to test |
Returns true if the plugin contains resources of the specified type, for example "i18n" resource types
| plugin | the plugin play (typically from a plugin event) |
|---|---|
| pluginResourceType | the descriptive name of the resource type (for example "i18n") |
Returns true if the underlying plugin contains resources of the specified type, for example "i18n" resource types
| moduleDescriptor | the module descriptor of the plugin play (typically from a plugin event) |
|---|---|
| pluginResourceType | the descriptive name of the resource type (for example "i18n") |
Tracks a plugin as being involved
| plugin | the plugin in play |
|---|
Tracks a plugin as being involved via its ModuleDescriptor
| moduleDescriptor | the ModuleDescriptor of the plugin in play |
|---|