Package org.rhq.bindings

Examples of org.rhq.bindings.StandardScriptPermissions


            ScriptEngine engine = q.poll();

            if (engine == null) {
                engine = ScriptEngineFactory.getSecuredScriptEngine(language, new CliSenderPackageFinder(
                    domainPackagesNames), bindings, new StandardScriptPermissions());
            }
            //TODO is this OK, or should we use a different classloader than the context classloader?
            ScriptSourceProvider[] providers = ScriptSourceProviderFactory.get(null);
            ScriptEngineFactory.injectStandardBindings(engine, bindings, true, providers);
View Full Code Here


        }
    }

    private ScriptEngine getJavascriptScriptEngine() throws ScriptException {
        return new JsEngineProvider().getInitializer().instantiate(Collections.<String> emptySet(),
            new StandardScriptPermissions());
    }
View Full Code Here

            new StandardScriptPermissions());
    }

    private ScriptEngine getPythonScriptEngine() throws ScriptException {
        return new PythonScriptEngineProvider().getInitializer().instantiate(Collections.<String> emptySet(),
            new StandardScriptPermissions());
    }
View Full Code Here

public class ScriptableAbstractEJB3Test extends AbstractEJB3Test {

    protected ScriptEngine getEngine(Subject subject) throws ScriptException, IOException {
        StandardBindings bindings = new StandardBindings(new PrintWriter(System.out), new LocalClient(subject));

        PermissionCollection perms = new StandardScriptPermissions();

        return ScriptEngineFactory.getSecuredScriptEngine("javascript",
            new PackageFinder(Collections.<File> emptyList()), bindings, perms);
    }
View Full Code Here

TOP

Related Classes of org.rhq.bindings.StandardScriptPermissions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.