Examples of StandardBindings


Examples of com.sk89q.intake.parametric.binding.StandardBindings

     * <p>This method will install {@link PrimitiveBindings} and
     * {@link StandardBindings} and default bindings.</p>
     */
    public ParametricBuilder() {
        addBinding(new PrimitiveBindings());
        addBinding(new StandardBindings());
    }
View Full Code Here

Examples of com.sk89q.worldedit.util.command.binding.StandardBindings

     * <p>This method will install {@link PrimitiveBindings} and
     * {@link StandardBindings} and default bindings.</p>
     */
    public ParametricBuilder() {
        addBinding(new PrimitiveBindings());
        addBinding(new StandardBindings());
    }
View Full Code Here

Examples of org.rhq.bindings.StandardBindings

                    }
                }
            });

        RepoScriptSourceProvider provider = new RepoScriptSourceProvider();
        provider.rhqFacadeChanged(new StandardBindings(null, rhqFacade));

        URI uri = new URI("rhq://repositories/" + CORRECT_REPO_NAME + "/" + CORRECT_PACKAGE_NAME);

        Reader rdr = provider.getScriptSource(uri);
View Full Code Here

Examples of org.rhq.bindings.StandardBindings

public class ScriptAssertTest extends ScriptedTestBase {

    private ScriptEngine getScriptEngine() {
        try {
            return getScriptEngine(new PackageFinder(Collections.<File> emptyList()), new StandardBindings(
                new PrintWriter(System.out), new FakeRhqFacade()));
        } catch (ScriptException e) {
            fail("Could not get the script engine.", e);
            return null;
        } catch (IOException e) {
View Full Code Here

Examples of org.rhq.bindings.StandardBindings

        Set<String> domainPackagesNames) throws ScriptException, IOException, InterruptedException {
        Subject user = config.subject;

        LocalClient client = new LocalClient(user);

        StandardBindings bindings = new StandardBindings(output, client);
        bindings.put("alert", alert);

        ScriptEngine engine = takeEngine(bindings, language, domainPackagesNames);
        engine.getContext().setWriter(output);
        engine.getContext().setErrorWriter(output);
View Full Code Here

Examples of org.rhq.bindings.StandardBindings

        client.getPrintWriter().println();
        return true;
    }

    private void initBindings(ClientMain client) {
        bindings = new StandardBindings(client.getPrintWriter(), client.getRemoteClient());
        // init pretty width with console setting
        bindings.getPretty().getValue().setWidth(client.getConsoleWidth());
        // replace ResourceClientFactory with Editable version or none at all
        if (client.getRemoteClient() != null) {
            bindings.getProxyFactory().setValue(new EditableResourceClientFactory(client));
View Full Code Here

Examples of org.rhq.bindings.StandardBindings

*/
@Test
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

Examples of org.rhq.bindings.StandardBindings

       
        URI real = tmpDir.toURI().resolve("downloads/script-modules/test-script.js");
       
        RhqDownloadsScriptSourceProvider provider = new RhqDownloadsScriptSourceProvider();

        StandardBindings bindings = new StandardBindings(null, client);
       
        provider.rhqFacadeChanged(bindings);
       
        URI location = new URI("rhq://downloads/test-script.js");
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.