org.apache.sling.launchpad.testservices.scripting
Class StringBindingsValuesProvider

java.lang.Object
  extended by org.apache.sling.launchpad.testservices.scripting.StringBindingsValuesProvider
All Implemented Interfaces:
BindingsValuesProvider

@Service
@Properties(value={@Property(name="service.description",value="StringBindingsValuesProvider"),@Property(name="service.vendor",value="The Apache Software Foundation")})
public class StringBindingsValuesProvider
extends Object
implements BindingsValuesProvider

Example/test BindingsValuesProvider targeting all scripts


Constructor Summary
StringBindingsValuesProvider()
           
 
Method Summary
 void addBindings(javax.script.Bindings bindings)
          Add objects to the Bindings object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBindingsValuesProvider

public StringBindingsValuesProvider()
Method Detail

addBindings

public void addBindings(javax.script.Bindings bindings)
Description copied from interface: BindingsValuesProvider
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.

Specified by:
addBindings in interface BindingsValuesProvider
Parameters:
bindings - the Bindings object


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.