Class SimplePluginsTracker

java.lang.Object
com.atlassian.jira.plugin.util.SimplePluginsTracker
All Implemented Interfaces:
PluginsTracker

@ThreadSafe @Immutable public class SimplePluginsTracker extends Object implements PluginsTracker
Since:
v6.2.3
  • Constructor Details

    • SimplePluginsTracker

      public SimplePluginsTracker(List<com.atlassian.plugin.Plugin> trackedPlugins)
  • Method Details

    • isPluginInvolved

      public boolean isPluginInvolved(com.atlassian.plugin.Plugin plugin)
      Description copied from interface: PluginsTracker
      Returns true if the plugin is being tracked
      Specified by:
      isPluginInvolved in interface PluginsTracker
      Parameters:
      plugin - the plugin in play
      Returns:
      true if the underlying plugin is being tracked
    • isPluginInvolved

      public boolean isPluginInvolved(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
      Description copied from interface: PluginsTracker
      Returns true if the plugin that this ModuleDescriptor belongs to is being tracked
      Specified by:
      isPluginInvolved in interface PluginsTracker
      Parameters:
      moduleDescriptor - the ModuleDescriptor of the plugin in play
      Returns:
      true if the underlying plugin is being tracked
    • getStateHashCode

      public String getStateHashCode()
      Description copied from interface: PluginsTracker
      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.

      Specified by:
      getStateHashCode in interface PluginsTracker
      Returns:
      Return a hash that represents all the plugins in this tracker.
    • toString

      public String toString()
      Overrides:
      toString in class Object