Code example for SimpleBindings

0
 * The Sightly Script engine 
 */ 
public class SightlyScriptEngine extends AbstractSlingScriptEngine { 
 
    private static final Logger LOG = LoggerFactory.getLogger(SightlyScriptEngine.class); 
    private static final Bindings EMPTY_BINDINGS = new SimpleBindings(Collections.<String, Object>emptyMap());
    private static final int MAX_CLASSLOADER_RETRIES = 5;
 
    private final UnitLoader unitLoader;
    private final Dynamic dynamic;
    private final ExtensionRegistryService extensionRegistryService;
 
    public SightlyScriptEngine(ScriptEngineFactory scriptEngineFactory,
                               UnitLoader unitLoader,
                               Dynamic dynamic,
                               ExtensionRegistryService extensionRegistryService) {
        super(scriptEngineFactory);
        this.unitLoader = unitLoader;
        this.dynamic = dynamic;
        this.extensionRegistryService = extensionRegistryService;
Experience pair programming with AI  Get Codota for Java