Examples of invokeMethod()


Examples of groovy.xml.DOMBuilder.invokeMethod()

    }

    public static Element replaceNode(Element self, Closure c) {
        // Use DOMBuilder to generate the replacement node.
        DOMBuilder b = new DOMBuilder(self.getOwnerDocument());
        Element newNode = (Element) b.invokeMethod("rootNode", c);

        // The replacement node is the first child element of 'rootNode'.
        Node n = newNode.getFirstChild();
        while (n != null && n.getNodeType() != Node.ELEMENT_NODE) {
            n = n.getNextSibling();
View Full Code Here

Examples of javax.script.Invocable.invokeMethod()

        engine.eval("function hello(s) { return 'Hello ' + s; }" );
        assertTrue(engine instanceof Invocable);
        Invocable invocableScript = (Invocable) engine;

        Object thiz = engine.eval("this;");
        assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"}));
    }

}
View Full Code Here

Examples of l2p.extensions.scripts.ScriptObject.invokeMethod()

    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
    return args == null ? o.invokeMethod(method) : o.invokeMethod(method, args);
  }

  public Object callScripts(Script scriptClass, Method method)
  {
    return callScripts(scriptClass, method, null, null);
View Full Code Here

Examples of org.adfemg.datacontrol.xml.data.XMLDCElement.invokeMethod()

        if (instance instanceof XMLDCElement) {
            XMLDCElement xmldce = (XMLDCElement) instance;
            if (xmldce.hasMethod(methodName, action.getParamsMap())) {
                // TODO: logging
                logger.fine("invoking @Operation method {0} on {1}, new Object[]{methodName, instance}");
                Object result = xmldce.invokeMethod(methodName, action.getParamsMap());
                logger.fine("returning {0}", result);
                processResult(result, bindingContext, action);
                return true; // true to indicate we handled the operation
            }
        }
View Full Code Here

Examples of org.apache.imperius.spl.core.Actuator.invokeMethod()

                }
            }

            Actuator ac = ActuatorFactory.getActuator();

            Object result = ac.invokeMethod(className, qualifier, targetObject,
                    methodName, parameterObjects);

            //System.out.println("method invokation complete : "+className+" "+qualifier+" "+methodName+" "+targetObject);
            //System.out.println("method invokation result of invokation : "+result);
View Full Code Here

Examples of org.apache.qpid.qmf2.console.QmfConsoleData.invokeMethod()

            {
                arguments.setValue("name", "test " + i);

                try
                {
                    broker.invokeMethod("create", arguments);
                }
                catch (QmfException e)
                { // This may be throw if we've already added the queues, we just catch and ignore for this test.
                    //System.out.println(e.getMessage());
                }
View Full Code Here

Examples of org.apache.qpid.qmf2.console.QmfConsoleData.invokeMethod()

                // ********** Invoke processPayload nethod **********
                System.out.println("Testing invokeMethod(processPayload, args)");
                QmfData inArgs = new QmfData();
                inArgs.setValue("parameter", new byte[150000000]);

                MethodResult results = control.invokeMethod("processPayload", inArgs);
                if (!results.succeeded())
                {
                    System.out.println("processPayload returned an exception object");
                    System.exit(1);
                }
View Full Code Here

Examples of org.apache.qpid.qmf2.console.QmfConsoleData.invokeMethod()

            try
            {
                QmfData arguments = new QmfData();
                arguments.setValue("request", (long)(_purge*msgDepth));
                queue.invokeMethod("purge", arguments);
            }
            catch (QmfException e)
            {
                System.out.println(e.getMessage());
            }   
View Full Code Here

Examples of org.apache.qpid.qmf2.console.QmfConsoleData.invokeMethod()

                // ********** Invoke create_child nethod **********
                System.out.println("Testing invokeMethod(create_child, args)");
                inArgs = new QmfData();
                inArgs.setValue("name", "child 1");

                results = control.invokeMethod("create_child", inArgs);
                if (!results.succeeded())
                {
                    System.out.println("create_child returned an exception object");
                    System.exit(1);
                }
View Full Code Here

Examples of org.apache.qpid.qmf2.console.QmfConsoleData.invokeMethod()

            while (true)
            {
                try
                {
                    MethodResult results = broker.invokeMethod("getLogLevel", arguments);
//System.out.println(results.getStringValue("level"));
                }
                catch (QmfException e)
                { // This may be throw if we've already added the queues, we just catch and ignore for this test.
                    //System.out.println(e.getMessage());
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.