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)
Deprecated.
since 6.7.0
|
ThreadlocalWebResourceDependenciesRecorder(com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory,
com.atlassian.plugin.webresource.assembler.LegacyPageBuilderService pageBuilderService,
EditorContextCompatibility editorContextCompatibility) |
| 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,
EditorContextCompatibility editorContextCompatibility)
@Deprecated 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
WebResourceDependenciesRecorderWebResourceDependenciesRecorder.record(Iterable, Iterable, boolean, Callable), but with superbatch set to false.record in interface WebResourceDependenciesRecorderT - 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
WebResourceDependenciesRecorderrecord in interface WebResourceDependenciesRecorderT - 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 WebResourceDependenciesRecorderExceptionpublic <T> com.atlassian.fugue.Pair<T,WebResourceDependenciesRecorder.RecordedResources> record(Callable<T> callback) throws Exception
WebResourceDependenciesRecorderWebResourceDependenciesRecorder.record(Iterable, Iterable,
Callable) without any overrides.record in interface WebResourceDependenciesRecorderT - the return value of the callbackcallback - the code to execute during recordingException - if the callback threw an exception.Copyright © 2003–2019 Atlassian. All rights reserved.