com.atlassian.jira.plugin.util.PluginsTracker |
![]() |
This is a glorified list of plugin keys that code can use to track what plugins are involved in it's caches
On plugin events it can then ask if the event related to one of the tracked plugins
This uses a java.util.concurrent.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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PluginsTracker.PluginInfo | A simple class that contains plugin key and pluginVersion. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return a hash that represents all the plugins in this tracker.
| |||||||||||
Returns true if the plugin that this ModuleDescriptor belongs to is being tracked
| |||||||||||
Returns true if the plugin is being tracked
|
Return a hash that represents all the plugins in this tracker. This hash should change if the list of plugins being tracked changes.
It is used to help generate a cache busting WebResource URL prefix. That is, if this hash changes then it is likely that the URLs to all of JIRA's WebResources will change which will force all browsers to request all resources again.
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 |
---|