public class ThreadlocalWebResourceDependenciesRecorder extends Object implements WebResourceDependenciesRecorder
PageBuilderService
to do the webresource resolution.WebResourceDependenciesRecorder.RecordedResources
Constructor and Description |
---|
ThreadlocalWebResourceDependenciesRecorder(com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory,
com.atlassian.plugin.webresource.assembler.LegacyPageBuilderService pageBuilderService) |
Modifier and Type | Method and Description |
---|---|
<T> com.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources> |
record(Callable<T> callback)
Records the webresources used during the execution of the given callback.
|
<T> com.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources> |
record(Iterable<String> additionalContexts,
Iterable<String> additionalResources,
boolean includeSuperbatch,
Callable<T> callback)
Records the webresources used during the execution of the given callback.
|
<T> com.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources> |
record(Iterable<String> additionalContexts,
Iterable<String> additionalResources,
Callable<T> callback)
Same as calling
WebResourceDependenciesRecorder.record(Iterable, Iterable, boolean, Callable) , but with superbatch set to false. |
<T> com.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources> |
record(Iterable<String> additionalContexts,
Iterable<String> additionalResources,
Iterable<String> excludeContexts,
Iterable<String> excludeResources,
boolean includeSuperbatch,
Callable<T> callback) |
public ThreadlocalWebResourceDependenciesRecorder(com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory, com.atlassian.plugin.webresource.assembler.LegacyPageBuilderService pageBuilderService)
public <T> com.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources> record(Iterable<String> additionalContexts, Iterable<String> additionalResources, Callable<T> callback) throws Exception
WebResourceDependenciesRecorder
WebResourceDependenciesRecorder.record(Iterable, Iterable, boolean, Callable)
, but with superbatch set to false.record
in interface WebResourceDependenciesRecorder
T
- the return value of the callback.additionalContexts
- the context that should be added to the set of webresources (which may not be in the callback)additionalResources
- the additional resources that should be added to the set of webresources (which may not be in the
callback)callback
- the code to execute during recordingException
- if the callback threw an exception.public <T> com.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources> record(Iterable<String> additionalContexts, Iterable<String> additionalResources, boolean includeSuperbatch, Callable<T> callback) throws Exception
WebResourceDependenciesRecorder
record
in interface WebResourceDependenciesRecorder
T
- the return value of the callback.additionalContexts
- the context that should be added to the set of webresources (which may not be in the callback)additionalResources
- the additional resources that should be added to the set of webresources (which may not be in the
callback)includeSuperbatch
- true if the record should include the superbatch.callback
- the code to execute during recordingException
- if the callback threw an exception.public <T> com.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources> record(Iterable<String> additionalContexts, Iterable<String> additionalResources, Iterable<String> excludeContexts, Iterable<String> excludeResources, boolean includeSuperbatch, Callable<T> callback) throws Exception
record
in interface WebResourceDependenciesRecorder
Exception
public <T> com.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources> record(Callable<T> callback) throws Exception
WebResourceDependenciesRecorder
WebResourceDependenciesRecorder.record(Iterable, Iterable,
Callable)
without any overrides.record
in interface WebResourceDependenciesRecorder
T
- the return value of the callbackcallback
- the code to execute during recordingException
- if the callback threw an exception.Copyright © 2003–2018 Atlassian. All rights reserved.