Interface ScriptingResourceResolverProvider
-
@ProviderType public interface ScriptingResourceResolverProvider
TheScriptingResourceResolverProvider
provides methods to obtainResourceResolver
s that can be used by scripting bundles to perform their script resolution operations.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceResolver
getRequestScopedResourceResolver()
Provides a request-scopedResourceResolver
with only read access to the search paths.
-
-
-
Method Detail
-
getRequestScopedResourceResolver
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 (callingResourceResolver.close()
doesn't do anything), since this service will handle the closing operation automatically. TheResourceResolver
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).- Returns:
- a request scoped resource resolver
-
-