Package org.apache.sling.scripting.api
Interface BindingsValuesProvider
- All Known Implementing Classes:
JcrObjectsBindingsValuesProvider
,SightlyBindingsValuesProvider
,TimingBindingsValuesProvider
public interface BindingsValuesProvider
Service interface which allows for the Bindings object.
- Since:
- 2.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the multi-value service property that defines the context(s) to which a BindingsValuesProvider applies.static final String
The default value of the CONTEXT service property, used for compatibility with previous versions of this bundle that didn't require it. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBindings
(Bindings bindings) Add objects to the Bindings object.
-
Field Details
-
CONTEXT
The name of the multi-value service property that defines the context(s) to which a BindingsValuesProvider applies. This service property is optional, if not set the default value isDEFAULT_CONTEXT
- See Also:
-
DEFAULT_CONTEXT
The default value of the CONTEXT service property, used for compatibility with previous versions of this bundle that didn't require it.- See Also:
-
-
Method Details
-
addBindings
Add objects to the Bindings object. The Bindings object passed to this method does not support replacing or removing entries provided by Sling core scripting supports (request, response, resource, etc.). Entries created by other implementations of SlingScriptBindingsValuesProvider is permitted.- Parameters:
bindings
- the Bindings object
-