@ThreadSafe @Immutable public class SimplePluginsTracker extends Object implements PluginsTracker
PluginsTracker.PluginInfo
Constructor and Description |
---|
SimplePluginsTracker(List<com.atlassian.plugin.Plugin> trackedPlugins) |
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
|
String |
toString() |
public SimplePluginsTracker(List<com.atlassian.plugin.Plugin> trackedPlugins)
public boolean isPluginInvolved(com.atlassian.plugin.Plugin plugin)
PluginsTracker
isPluginInvolved
in interface PluginsTracker
plugin
- the plugin in playpublic boolean isPluginInvolved(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
PluginsTracker
isPluginInvolved
in interface PluginsTracker
moduleDescriptor
- the ModuleDescriptor of the plugin in playpublic String getStateHashCode()
PluginsTracker
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.
getStateHashCode
in interface PluginsTracker
Copyright © 2002-2022 Atlassian. All Rights Reserved.