@ProviderType public interface ScriptingResourceResolverProvider
ScriptingResourceResolverProvider
provides methods to obtain ResourceResolver
s that can be used by scripting
bundles to perform their script resolution operations.Modifier and Type | Method and Description |
---|---|
ResourceResolver |
getRequestScopedResourceResolver()
Provides a request-scoped
ResourceResolver with only read access to the search paths. |
ResourceResolver getRequestScopedResourceResolver()
Provides a request-scoped ResourceResolver
with only read access to the search paths.
This resolver should be used for script resolution in the context of the same request rendering process. The ResourceResolver
should not be closed by consumers (calling ResourceResolver.close()
doesn't do anything), since this
service will handle the closing operation automatically. The ResourceResolver
will be shared between scripting
dependencies that render parts of the response for the same request.
NOTE: Usage of this ResourceResolver
outside of a Servlet Request API context might lead to improper cleaning
(e.g. reusing the same resolver for multiple threads).
Copyright © 2010 - 2020 Adobe. All Rights Reserved