Package org.apache.sling.api.scripting
Interface SlingScriptResolver
-
@Deprecated @ProviderType public interface SlingScriptResolver
Deprecated.The SlingScriptResolver interface is intended to be implemented and also used by project specific code. To keep the API as clean as possible this interface was deprecatedTheScriptResolverinterface defines the API for a service capable of locating scripts. Where the script is actually located is an implementation detail of the service implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @Nullable SlingScriptfindScript(@NotNull ResourceResolver resourceResolver, @NotNull java.lang.String name)Deprecated.Finds theSlingScriptfor the given name.
-
-
-
Method Detail
-
findScript
@Nullable @Nullable SlingScript findScript(@NotNull @NotNull ResourceResolver resourceResolver, @NotNull @NotNull java.lang.String name)
Deprecated.Finds theSlingScriptfor the given name.The semantic meaning of the name is implementation specific: It may be an absolute path to a
Resourceproviding 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.- Parameters:
resourceResolver- TheResourceResolverused to access the script.name- The script name. Must not benull.- Returns:
- The
SlingScriptto which the name resolved ornullotherwise. - Throws:
SlingException- If an error occurrs trying to resolve the name.
-
-