public class ContextBatch extends Object
| Constructor and Description |
|---|
ContextBatch(List<String> contexts,
Iterable<String> excludedContexts,
Iterable<ModuleDescriptorStub> resources,
boolean removeSuperResources) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<PluginResource> |
buildPluginResources(boolean resplitMergedBatches)
Iterates over the batch parameters for the context and creates a
ContextBatchPluginResource for each. |
boolean |
equals(Object obj) |
List<String> |
getContexts() |
Iterable<String> |
getExcludedContexts() |
String |
getKey() |
Iterable<ModuleDescriptorStub> |
getResources() |
int |
hashCode() |
boolean |
isRemoveSuperResources() |
public ContextBatch(List<String> contexts, Iterable<String> excludedContexts, Iterable<ModuleDescriptorStub> resources, boolean removeSuperResources)
contexts - the ordering of contexts is important since it determines the ordering of resources within a batch (which could be
important for badly written Javascripts).excludedContexts - the ordering of excluded contexts is not important.public boolean isRemoveSuperResources()
public Iterable<PluginResource> buildPluginResources(boolean resplitMergedBatches)
ContextBatchPluginResource for each.
It should be noted that the created ContextBatchPluginResource will not actually contain any
DownloadableResource. The PluginResource created is primarily representing a
URL to be used in constructing a particular resource/download reference.
DownloadableResources.public Iterable<ModuleDescriptorStub> getResources()
public String getKey()
Copyright © 2017 Atlassian. All rights reserved.