Examples of invoke()


Examples of org.switchyard.component.resteasy.util.MethodInvoker.invoke()

            final String m = RestEasyMessages.MESSAGES.unableToMapAmongResources(opName, _methodMap.keySet().toString());
            throw new HandlerException(m);
        }

        try {
            RESTEasyBindingData restResponse = methodInvoker.invoke(restRequest.getParameters(), restRequest.getHeaders());
            restResponse.setOperationName(opName);
            Message out = _messageComposer.compose(restResponse, exchange);
            // Our transformer magic transforms the entity appropriately here :)
            exchange.send(out);
        } catch (Exception e) {
View Full Code Here

Examples of org.switchyard.remote.RemoteInvoker.invoke()

        // Create the request message
        RemoteMessage message = new RemoteMessage();
        message.setService(SERVICE).setOperation("offer").setContent(offer);

        // Invoke the service
        RemoteMessage reply = invoker.invoke(message);
        if (reply.isFault()) {
            System.err.println("Oops ... something bad happened.  "
                + reply.getContent());
        } else {
            Deal deal = (Deal) reply.getContent();
View Full Code Here

Examples of org.switchyard.remote.http.HttpInvoker.invoke()

        // Create the request message
        RemoteMessage message = new RemoteMessage();
        message.setService(SERVICE).setOperation("offer").setContent(offer);

        // Invoke the service
        RemoteMessage reply = invoker.invoke(message);
        if (reply.isFault()) {
            System.err.println("Oops ... something bad happened.  "
                + reply.getContent());
        } else {
            Deal deal = (Deal) reply.getContent();
View Full Code Here

Examples of org.talend.esb.job.controller.GenericOperation.invoke()

                esbRequest.put(CorrelationIDFeature.MESSAGE_CORRELATION_ID, context.getMessageContext().get(CorrelationIDFeature.MESSAGE_CORRELATION_ID));
                payload = esbRequest;
            } else {
                payload = requestDoc;
            }
            Object result = esbProviderCallback.invoke(payload,
                    isOperationRequestResponse(operationQName.getLocalPart()));

            // oneway
            if (result == null) {
                return null;
View Full Code Here

Examples of org.voltdb.groovy.GroovyScriptProcedureDelegate.invoke()

                    else if (m_language == Language.GROOVY) {
                        if (HOST_TRACE_ENABLED) {
                            log.trace("invoking... groovy closure on class=" + getClass().getName());
                        }
                        GroovyScriptProcedureDelegate proc = (GroovyScriptProcedureDelegate)m_procedure;
                        Object rawResult = proc.invoke(paramList);
                        results = getResultsFromRawResults(rawResult);
                    }
                    log.trace("invoked");
                }
                catch (InvocationTargetException itex) {
View Full Code Here

Examples of org.wso2.carbon.billing.core.scheduler.scheduleHelpers.MonthlyScheduleHelper.invoke()

        args.put("hourToTriggerOn", "0");
        MonthlyScheduleHelper monthlyTriggerCalculator = new MonthlyScheduleHelper();
        monthlyTriggerCalculator.init(args);

        SchedulerContext schedulerContext = new SchedulerContext();
        monthlyTriggerCalculator.invoke(schedulerContext, someDateTimeStamp);

        long nextMonthFirstTimeStampDuration = schedulerContext.getNextTriggerInterval();

        long durationStart = schedulerContext.getCurrentDurationStart();
        long durationEnd = schedulerContext.getCurrentDurationEnd();
View Full Code Here

Examples of org.wso2.carbon.registry.core.Aspect.invoke()

            context.setAspect(aspect);
            context.setAction(action);
            registryContext.getHandlerManager().invokeAspect(context);
            if (!context.isSimulation()) {
                if (!context.isProcessingComplete()) {
                    aspect.invoke(context, action);
                }
                resource.discard();

                // transaction succeeded
                transactionSucceeded = true;
View Full Code Here

Examples of org.wso2.carbon.throttling.manager.dataproviders.DataProvider.invoke()

                        "Error in invoking the data provider. " + "dataProviderConfigs is null or "
                                + "data provider is not yet loaded";
                log.error(msg);
                throw new ThrottlingException(msg);
            }
            dataProvider.invoke(dataContext);
            if (dataContext.isProcessingComplete()) {
                break;
            }
        }
    }
View Full Code Here

Examples of org.wso2.carbon.throttling.manager.rules.RuleInvoker.invoke()

            List<Object> knowledgeBase = new ArrayList<Object>();
            ThrottlingDataContext throttlingDataContext =
                    KnowledgeBaseManager.feedKnowledgeBase(tenantId, task, knowledgeBase);

            RuleInvoker ruleInvoker = task.getRuleInvoker();
            ruleInvoker.invoke(knowledgeBase);

            ValidationInfoManager.persistValidationDetails(throttlingDataContext);
        }
    }
}
View Full Code Here

Examples of org.zkoss.openlayers.util.Function.invoke()

  @Override
  public String toJSONString() {
    Function fun = getNativeObject();
    if (!_features.isEmpty()) {
      fun.invoke("addFeatures", _features);
    }
    return fun.toJSONString(_map);
  }

  @Override
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.