public class

DefaultResourceBatchingConfiguration

extends Object
implements ResourceBatchingConfiguration
java.lang.Object
   ↳ com.atlassian.plugin.webresource.DefaultResourceBatchingConfiguration

Class Overview

Default configuration for the plugin resource locator, for those applications that do not want to perform any super-batching.

Summary

Constants
String PLUGIN_WEBRESOURCE_BATCHING_OFF
Public Constructors
DefaultResourceBatchingConfiguration()
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.webresource.ResourceBatchingConfiguration

Constants

public static final String PLUGIN_WEBRESOURCE_BATCHING_OFF

Constant Value: "plugin.webresource.batching.off"

Public Constructors

public DefaultResourceBatchingConfiguration ()

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