Package org.rhq.bindings

Examples of org.rhq.bindings.StandardBindings$CastingEntry


                    }
                }
            });

        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


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

        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

        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

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

       
        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

Related Classes of org.rhq.bindings.StandardBindings$CastingEntry

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.