public interface PrebakeWebResourceAssemblerFactory extends WebResourceAssemblerFactory
com.atlassian.webresource.api.prebake).
This factory provides direct capability to produce all possible dimensions via computeDimensions().
For any given coordinate within those dimensions, you can create a PrebakeWebResourceAssembler
locked to that coordinate via PrebakeWebResourceAssemblerBuilder.withCoordinate(Coordinate).
Subsequent calls to requireResource()/requireContext()/drain()/poll() will deal with the given coordinate,
and not the thread-local behaviour a condition/transform would normally have.
If a condition or transform is encountered that is not dimension-aware, then the attempt
to prebake that resource will fail, and this can be detected with PluginUrlResource.getPrebakeErrors().
This should be checked on each webresource after each call to drain() or poll().
| Modifier and Type | Method and Description |
|---|---|
Dimensions |
computeBundleDimensions(Bundle bundle) |
Dimensions |
computeDimensions() |
String |
computeGlobalStateHash()
Produce a hash that indicates the "state" of the WRM.
|
PrebakeWebResourceAssemblerBuilder |
create() |
clearCachePrebakeWebResourceAssemblerBuilder create()
create in interface WebResourceAssemblerFactoryDimensions computeDimensions()
Dimensions computeBundleDimensions(Bundle bundle)
bundle - for which you want to get dimensions.Dimensions related to given bundle.String computeGlobalStateHash()
Copyright © 2019 Atlassian. All rights reserved.