@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)
PluginsTrackerisPluginInvolved in interface PluginsTrackerplugin - the plugin in playpublic boolean isPluginInvolved(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
PluginsTrackerisPluginInvolved in interface PluginsTrackermoduleDescriptor - the ModuleDescriptor of the plugin in playpublic String getStateHashCode()
PluginsTrackerIt 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 PluginsTrackerCopyright © 2002-2018 Atlassian. All Rights Reserved.