public interface

ResourceBatchingConfiguration

com.atlassian.plugin.webresource.ResourceBatchingConfiguration
Known Indirect Subclasses

Class Overview

Resource batching configuration for the WebResourceManagerImpl. Currently contains the configuration for batch support.

Summary

Public Methods
List<String> getSuperBatchModuleCompleteKeys()
Gets the list of resource plugin modules that should be included in the superbatch, in the order that they should be batched.
boolean isContextBatchingEnabled()
Determines whether web resources in the same context should be batched together.
boolean isPluginWebResourceBatchingEnabled()
Determines whether plugin resources of the same type defined within a single web resource are batched into one file.
boolean isSuperBatchingEnabled()
Gets whether web resources in different resource modules should be batched together.

Public Methods

public List<String> getSuperBatchModuleCompleteKeys ()

Gets the list of resource plugin modules that should be included in the superbatch, in the order that they should be batched. No dependency resolution is performed, so it is important that the configuration includes all dependent resources in the right order. Any call to requireResource(String) for one of these resources will be a no-op, and any dependency resolution for resources will stop if the dependency is in the superbatch.

Returns
  • a list of resource plugin modules that should be included in the superbatch.

public boolean isContextBatchingEnabled ()

Determines whether web resources in the same context should be batched together.

Returns
  • true if web resources in the same context are batched together.

public boolean isPluginWebResourceBatchingEnabled ()

Determines whether plugin resources of the same type defined within a single web resource are batched into one file.

Returns
  • true if plugin resources in the same web resource are batched together.

public boolean isSuperBatchingEnabled ()

Gets whether web resources in different resource modules should be batched together.

Returns
  • true if web resources in different resource modules should be batched together