Examples of invoke()


Examples of org.apache.commons.jexl2.introspection.JexlMethod.invoke()

                if (vm == null) {
                    xjexl = new JexlException(node, "unknown or ambiguous method", null);
                }
            }
            if (xjexl == null) {
                Object eval = vm.invoke(data, argv); // vm cannot be null if xjexl is null
                // cache executor in volatile JexlNode.value
                if (cache && vm.isCacheable()) {
                    node.jjtSetValue(vm);
                }
                return eval;
View Full Code Here

Examples of org.apache.commons.jexl2.introspection.JexlPropertyGet.invoke()

            }
        }
        JexlPropertyGet vg = uberspect.getPropertyGet(object, attribute, node);
        if (vg != null) {
            try {
                Object value = vg.invoke(object);
                // cache executor in volatile JexlNode.value
                if (node != null && cache && vg.isCacheable()) {
                    node.jjtSetValue(vg);
                }
                return value;
View Full Code Here

Examples of org.apache.commons.jexl2.introspection.JexlPropertySet.invoke()

        JexlException xjexl = null;
        JexlPropertySet vs = uberspect.getPropertySet(object, attribute, value, node);
        if (vs != null) {
            try {
                // cache executor in volatile JexlNode.value
                vs.invoke(object, value);
                if (node != null && cache && vs.isCacheable()) {
                    node.jjtSetValue(vs);
                }
                return;
            } catch (RuntimeException xrt) {
View Full Code Here

Examples of org.apache.commons.jxpath.Function.invoke()

                "No such function: "
                    + functionName
                    + Arrays.asList(parameters));
        }

        return function.invoke(context, parameters);
    }
   
    private Object convert(Object object) {
        if (object instanceof EvalContext) {
            return ((EvalContext) object).getNodeSet();
View Full Code Here

Examples of org.apache.commons.modeler.Registry.invoke()

                onames.add( mbean.getObjectName());
            }

            if( action==null ) {
                // default: init and start
                reg.invoke(onames, "init", false);
                reg.invoke(onames, "start", false);
            } else {
                reg.invoke(onames, action, false );
            }
View Full Code Here

Examples of org.apache.commons.scxml.invoke.Invoker.invoke()

                    }
                    ctx.setLocal(NAMESPACES_KEY, null);
                    args.put(p.getName(), argValue);
                }
                try {
                    inv.invoke(source, args);
                } catch (InvokerException ie) {
                    TriggerEvent te = new TriggerEvent(s.getId()
                        + ".invoke.failed", TriggerEvent.ERROR_EVENT);
                    internalEvents.add(te);
                    continue;
View Full Code Here

Examples of org.apache.commons.scxml2.invoke.Invoker.invoke()

                String invokeId = exctx.setInvoker(i, inv);
                inv.setInvokeId(invokeId);
                inv.setParentIOProcessor(exctx.getExternalIOProcessor());
                inv.setEvaluator(exctx.getEvaluator());
                try {
                    inv.invoke(source, args);
                } catch (InvokerException ie) {
                    exctx.getInternalIOProcessor().addEvent(new TriggerEvent("failed.invoke."+ts.getId(), TriggerEvent.ERROR_EVENT));
                    exctx.removeInvoker(i);
                }
            }
View Full Code Here

Examples of org.apache.cxf.endpoint.Client.invoke()

        //TODO test fault exceptions
        DynamicClientFactory dcf = DynamicClientFactory.newInstance();
        Client client = dcf.createClient(wsdlUrl, serviceName, portName);
        updateAddressPort(client, PORT);
        client.invoke("greetMe", "test");       
        Object[] result = client.invoke("sayHi");
        assertNotNull("no response received from service", result);
        assertEquals("Bonjour", result[0]);
        //TODO: the following isn't a real test. We need to test against a service
        // that would actually notice the difference. At least it ensures that
View Full Code Here

Examples of org.apache.cxf.endpoint.ClientImpl.invoke()

            book.setAuthor("Dierk");
            book.setIsbn("2");
            book.setTitle("Groovy in Action");
            // client.invoke("addBook", new Object[] {book});

            Book[] books = (Book[])client.invoke("getBooks", new Object[] {})[0];

            System.out.println("BOOKS:");

            for (int i = 0; i < books.length; i++) {
                System.out.println(books[i].getTitle());
View Full Code Here

Examples of org.apache.cxf.endpoint.Retryable.invoke()

                        failover = true;
                        long delay = getDelayBetweenRetries();
                        if (delay > 0) {
                            Thread.sleep(delay);
                        }
                        retry.invoke(invocation.getBindingOperationInfo(),
                                     invocation.getParams(),
                                     invocation.getContext(),
                                     exchange);
                    } catch (Exception e) {
                        if (exchange.get(Exception.class) != null) {
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.