Class SuperBatchPluginResource

java.lang.Object
com.atlassian.plugin.webresource.legacy.AbstractPluginResource
com.atlassian.plugin.webresource.legacy.SuperBatchPluginResource
All Implemented Interfaces:
PluginResource

public class SuperBatchPluginResource extends AbstractPluginResource
Creates a batch of all like-typed resources that are declared as "super-batch="true"" in their plugin definitions.

The URL for batch resources is /download/superbatch/<type>/batch.<type. The additional type part in the path is simply there to make the number of path-parts identical with other resources, so relative URLs will still work in CSS files.

  • Constructor Details

    • SuperBatchPluginResource

      protected SuperBatchPluginResource()
  • Method Details

    • addBatchedWebResourceDescriptor

      public void addBatchedWebResourceDescriptor(String key)
    • addExcludedContext

      public void addExcludedContext(String key)
    • getExcludedContexts

      public Iterable<String> getExcludedContexts()
      Used to ensure superbatch does not double-serve resources loaded in an earlier ResourcePhase.
      Returns:
      the contexts that have already been served and should be subtracted from the superbatch.
    • isEmpty

      public boolean isEmpty()