Package org.apache.sling.scripting.api
Interface BindingsValuesProvidersByContext
-
public interface BindingsValuesProvidersByContextProvidesBindingsValuesProviderfor specific contexts, based on their "context" service property.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<BindingsValuesProvider>getBindingsValuesProviders(javax.script.ScriptEngineFactory scriptEngineFactory, java.lang.String context)Retrieve the currentBindingsValuesProviderfor the supplied ScriptEngineFactory and context.
-
-
-
Method Detail
-
getBindingsValuesProviders
java.util.Collection<BindingsValuesProvider> getBindingsValuesProviders(javax.script.ScriptEngineFactory scriptEngineFactory, java.lang.String context)
Retrieve the currentBindingsValuesProviderfor the supplied ScriptEngineFactory and context.- Parameters:
scriptEngineFactory- metadata of the ScriptEngine that's being usedcontext- Only BindingsValuesProviders that have this value in their CONTEXT service property are considered. For backwards compatibility, BindingsValuesProviders which do not have a CONTEXT service property are considered to have CONTEXT=request.- Returns:
- The returned Collection of BindingsValuesProvider is sorted so as to give preference to more specific BindingsValuesProvider over those that match a compatible.javax.script.name ScriptEngineFactory property, for example, in the same way that the SlingScriptAdapterFactory did before this service was implemented.
-
-