Examples of invoke()


Examples of org.platformlayer.ops.tasks.OperationInvoker.invoke()

      }

      OperationInvoker operationInvoker = opsSystem.getInjector().getInstance(OperationInvoker.class);

      try {
        operationInvoker.invoke(target);
      } catch (IllegalArgumentException e) {
        throw new OpsException("Error invoking method on " + target.getClass(), e);
      } catch (IllegalAccessException e) {
        throw new OpsException("Error invoking method on " + target.getClass(), e);
      } catch (InvocationTargetException e) {
View Full Code Here

Examples of org.powermock.core.spi.MethodInvocationControl.invoke()

      } catch (MethodNotFoundException e2) {
        throw e;
      }
    }
    if (methodInvocationControl != null && methodInvocationControl.isMocked(method) && shouldMockThisCall()) {
      returnValue = methodInvocationControl.invoke(object, method, args);
      if (returnValue == SUPPRESS) {
        returnValue = TypeUtils.getDefaultValue(returnTypeAsString);
      }
    } else if (MockRepository.hasMethodProxy(method)) {
      /*
 
View Full Code Here

Examples of org.python.core.PyObject.invoke()

                  pyargs[i] = Py.java2py(args[i]);
          }

          if (object != null) {
              PyObject o = Py.java2py(object);
              return unwrap(o.invoke(method, pyargs));
          }

          PyObject m = interp.get(method);

          if (m == null)
View Full Code Here

Examples of org.red5.server.api.service.IServiceCapableConnection.invoke()

     
      log.debug("### Client connected to OpenMeetings, register Client StreamId: "
          + streamId + " scope "+ room.getName() );
     
      //Set StreamId in Client
      service.invoke("setId", new Object[] { streamId },this);

      String swfURL = "";
      if (conn.getConnectParams().get("swfUrl") != null) {
        swfURL = conn.getConnectParams().get("swfUrl").toString();
      }
View Full Code Here

Examples of org.red5.server.api.service.IServiceInvoker.invoke()

  protected boolean handleRemotingPacket(HttpServletRequest req, IContext context, IScope scope, RemotingPacket message) {
    log.debug("Handling remoting packet");
    boolean result = true;
    final IServiceInvoker invoker = context.getServiceInvoker();
    for (RemotingCall call : message.getCalls()) {
      result = invoker.invoke(call, scope);
      //if we encounter a failure break out
      if (!result) {
        break;
      }
    }
View Full Code Here

Examples of org.red5.server.messaging.ServiceAdapter.invoke()

    if (endpoint instanceof ServiceAdapter) {
      log.debug("Endpoint is a ServiceAdapter so message will be invoked");
      ServiceAdapter adapter = (ServiceAdapter) endpoint;
      //the result of the invocation will make up the message body
      result.body = adapter.invoke(msg);
    } else {
      //get arguments
        Object[] args = null;
        try {
          log.debug("Body: {} type: {}", msg.body, msg.body.getClass().getName());
View Full Code Here

Examples of org.renjin.invoke.reflection.FunctionBinding.invoke()

    if(overloads.isEmpty()) {
      throw new EvalException("Method " + methodName + " not defined in " + clazz.getName());
    }

    FunctionBinding binding = new FunctionBinding(overloads);
    return binding.invoke(null, context, arguments);
  }

  public static List<Method> findMethod(Class packageClass, String methodName) {
    List<Method> overloads = Lists.newArrayList();
    for(Method method : packageClass.getMethods()) {
View Full Code Here

Examples of org.rhq.enterprise.communications.command.impl.generic.GenericCommandClient.invoke()

                    serverEndpoint.namePort.address, serverEndpoint.namePort.port, serverEndpoint.transportParams);
                GenericCommandClient client = new GenericCommandClient(rc);

                out.println(MSG.getMsg(AgentI18NResourceKeys.IDENTIFY_ASK_REMOTE_SERVER_FOR_ID, args[1]));
                sender.preprocessCommand(command);
                CommandResponse response = client.invoke(command);

                client.disconnectRemoteCommunicator();

                out.println(response);
            }
View Full Code Here

Examples of org.ringojs.engine.RingoWorker.invoke()

        }
        JsgiRequest req = new JsgiRequest(request, response, requestProto,
                engine.getScope(), this);
        RingoWorker worker = engine.getWorker();
        try {
            worker.invoke("ringo/jsgi/connector", "handleRequest", module,
                    function, req);
        } catch (Exception x) {
            List<ScriptError> errors = worker.getErrors();
            boolean verbose = engine.getConfig().isVerbose();
            try {
View Full Code Here

Examples of org.rssowl.contrib.podcast.core.codelets.InspectSequence.invoke()

   * @param feed
   */
  public void inspectInstruction(Object pSrc, IPersonalBookMark pPBookMark) {
    if (pPBookMark != null) {
      InspectSequence lSequence = new InspectSequence();
      lSequence.invoke(pPBookMark);
    }
  }

  /**
   * @category UNDER CONSTRUCTION
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.