Class ThreadlocalWebResourceDependenciesRecorder
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.content.ThreadlocalWebResourceDependenciesRecorder
-
- All Implemented Interfaces:
WebResourceDependenciesRecorder
public class ThreadlocalWebResourceDependenciesRecorder extends Object implements WebResourceDependenciesRecorder
Implements recording of webresource dependencies via a thread local mechanism. Internally will use thePageBuilderService
to do the webresource resolution.- Since:
- 5.9
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.plugin.webresource.WebResourceDependenciesRecorder
WebResourceDependenciesRecorder.RecordedResources
-
-
Constructor Summary
Constructors Constructor Description ThreadlocalWebResourceDependenciesRecorder(com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory, com.atlassian.plugin.webresource.assembler.LegacyPageBuilderService pageBuilderService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> io.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources>
recordResources(Callable<T> renderAction, Consumer<com.atlassian.webresource.api.assembler.RequiredResources> requiredResourcesCallback, Consumer<com.atlassian.webresource.api.assembler.WebResourceAssemblerBuilder> assemblerBuilderCallback)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.plugin.webresource.WebResourceDependenciesRecorder
record, record, record, record, recordResources, recordResources, recordResources, recordResources
-
-
-
-
Method Detail
-
recordResources
public <T> io.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources> recordResources(Callable<T> renderAction, Consumer<com.atlassian.webresource.api.assembler.RequiredResources> requiredResourcesCallback, Consumer<com.atlassian.webresource.api.assembler.WebResourceAssemblerBuilder> assemblerBuilderCallback) throws Exception
- Specified by:
recordResources
in interfaceWebResourceDependenciesRecorder
- Throws:
Exception
-
-