public interface PluginsTracker
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!
Modifier and Type | Interface and Description |
---|---|
static class |
PluginsTracker.PluginInfo
A simple class that contains plugin key and pluginVersion.
|
Modifier and Type | Method and Description |
---|---|
String |
getStateHashCode()
Return a hash that represents all the plugins in this tracker.
|
boolean |
isPluginInvolved(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
Returns true if the plugin that this ModuleDescriptor belongs to is being tracked
|
boolean |
isPluginInvolved(com.atlassian.plugin.Plugin plugin)
Returns true if the plugin is being tracked
|
boolean isPluginInvolved(com.atlassian.plugin.Plugin plugin)
plugin
- the plugin in playboolean isPluginInvolved(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
moduleDescriptor
- the ModuleDescriptor of the plugin in playString getStateHashCode()
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.
Copyright © 2002-2018 Atlassian. All Rights Reserved.