@ProviderType
public interface SlingScriptResolver
ScriptResolver interface defines the API for a service
capable of locating scripts. Where the script is actually located is an
implementation detail of the service implementation.| Modifier and Type | Method and Description |
|---|---|
@Nullable SlingScript |
findScript(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String name)
Deprecated.
Finds the
SlingScript for the given name. |
@Nullable @Nullable SlingScript findScript(@NotNull @NotNull ResourceResolver resourceResolver, @NotNull @NotNull java.lang.String name)
SlingScript for the given name.
The semantic meaning of the name is implementation specific: It may be an
absolute path to a Resource providing the script source or
it may be a relative path resolved according to some path settings.
Finally, the name may also just be used as an identifier to find the
script in some registry.
resourceResolver - The ResourceResolver used to
access the script.name - The script name. Must not be null.SlingScript to which the name resolved or
null otherwise.SlingException - If an error occurrs trying to resolve the name.Copyright © 2010 - 2023 Adobe. All Rights Reserved