Examples of invoke()


Examples of org.zkoss.xel.Function.invoke()

          args[j++] = arg;
        }
      }
     
      try {
        return fn.invoke(null, new Object[] {args, ctx});
      } catch (SSErrorXelException ex) {
        throw ex; //throw out again
      } catch (Exception ex) {
ex.printStackTrace();
        throw new SSErrorXelException(SSError.NUM);
View Full Code Here

Examples of pl.icedev.rmi.RMIServer.RMIInterface.invoke()

                sendError(RMIFault.ITF_ID_NOT_FOUND);
                return;
            }

            try {
                sendResult(interf.invoke(method, params.toArray()));
            } catch (InvocationTargetException e) {
              Throwable target = e.getTargetException();
              if(target instanceof Exception) {
                sendException((Exception) target);
              } else {
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.steps.ProcessToolProcessStep.invoke()

        PropertyAutoWiring.autowire(stepInstance, params);
        final BpmStep step = prepareStep(pi);
        res = watch.watchTask("actual step execution", new Callable<String>() {
        @Override
        public String call() throws Exception {
          return stepInstance.invoke(step, params);
        }
        });
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
View Full Code Here

Examples of play.modules.elasticsearch.ElasticSearchIndexAction.invoke()

      // Get Index Event
      ElasticSearchIndexEvent indexEvent = (ElasticSearchIndexEvent)o;
     
      // Fire Index Action
      ElasticSearchIndexAction indexAction = new ElasticSearchIndexAction();
      indexAction.invoke(indexEvent);
     
    } else {
      // Log Debug
      throw new RuntimeException("Unknown Message: " + o);
    }
View Full Code Here

Examples of q_impress.pmi.lib.services.loadsave.LoadingService.invoke()

      try {
        inStream = modelFile.getContents();
        service.setInStream(inStream);
        service.setLocationSolver(new WorkspaceLocationSolver());
        service.initialize();
        service.invoke();
       
        if (service.getLoadedResource() instanceof ModelingProject) return (ModelingProject) service.getLoadedResource();
        else throw new CoreException(new Status(Status.ERROR, "q_impress", "Unable to load model, invalid file."));
      } catch (CoreException e) {
        throw new CoreException(new Status(Status.ERROR, "q_impress", "Unable to load model.", e));
View Full Code Here

Examples of q_impress.pmi.lib.services.loadsave.SavingService.invoke()

    try {
     
      savingService.setOutStream(outStream);
      savingService.setTarget(project);
      savingService.initialize();
      savingService.invoke();
     
      inStream = new ByteArrayInputStream(outStream.toByteArray());
     
      if (file.exists()) {
        file.setContents(inStream, true, true, null);
View Full Code Here

Examples of railo.runtime.functions.BIF.invoke()

          }
        }
        BIF bif=flf.getBIF();
       
        if(flf.getMemberChaining() && obj!=null) {
          bif.invoke(pc, arguments);
          return obj;
        }
        return Caster.castTo(pc,flf.getReturnTypeAsString(),bif.invoke(pc, arguments),false);
  }
 
View Full Code Here

Examples of railo.runtime.reflection.pairs.ConstructorInstance.invoke()

  public static Object callConstructor(Class clazz, Object[] args, Object defaultValue) {
      args=cleanArgs(args);
      try {
            ConstructorInstance ci = getConstructorInstance(clazz,args,null);
            if(ci==null) return defaultValue;
            return ci.invoke();
        }
    catch (Throwable t) {
        return defaultValue;
    }
  }
View Full Code Here

Examples of railo.runtime.reflection.pairs.MethodInstance.invoke()

  @Override
  public Object call(PageContext pc, Key methodName, Object[] arguments) throws PageException {
    MethodInstance mi = Reflector.getMethodInstanceEL(this,this.getClass(), methodName, arguments);
    if(mi!=null) {
      try {
        return mi.invoke(this);
      } catch (Throwable t) {
        try {
          return pc.getFunction(QueryUtil.getValue(this,query.getCurrentrow(pc.getId())), methodName, arguments);
        } catch (PageException pe) {
          throw Caster.toPageException(t);
View Full Code Here

Examples of sun.reflect.MethodAccessor.invoke()

        }
        MethodAccessor ma = methodAccessor;             // read volatile
        if (ma == null) {
            ma = acquireMethodAccessor();
        }
        return ma.invoke(obj, args);
    }

    /**
     * Returns {@code true} if this method is a bridge
     * method; returns {@code false} otherwise.
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.