Examples of Invoker


Examples of org.jboss.invocation.Invoker

      // Implement local EJB calls
      else if (m.equals(GET_HANDLE))
      {
         int objectName = ((Integer) ctx.getObjectName()).intValue();
         String jndiName = (String) ctx.getValue(InvocationKey.JNDI_NAME);
         Invoker invoker = ctx.getInvoker();
         Object id = ctx.getCacheId();
         return createHandle(objectName, jndiName, invoker, id, ctx);
      }
      else if (m.equals(GET_EJB_HOME))
      {

Examples of org.mozilla.javascript.Invoker

*/
public class InvokerImpl extends Invoker {

    public Invoker createInvoker(Context cx, Method method, Class[] types) {

        Invoker result;
        int classNum;
        synchronized (this) {
            if (invokersCache == null) {
                invokersCache = new Hashtable();
                ClassLoader parentLoader = cx.getClass().getClassLoader();

Examples of org.pirkaengine.core.script.Invoker

        String funcName = Functions.getName(script);
        Function function = functions.get(funcName);
        if (function == null) throw new EvalException("function is not found: " + funcName);
        if (function.language == null) throw new EvalException("function.language is null: " + funcName);
        try {
            Invoker invoker = InvokerFactory.getInstance().getInvoker(function);
            Object[] params = createParams(script, model, functions);
            return invoker.invoke(function, params);
        } catch (SecurityException e) {
            throw new EvalException("function:" + function, e);
        } catch (IllegalArgumentException e) {
            throw new EvalException("function:" + function, e);
        } catch (NoSuchMethodException e) {

Examples of org.switchyard.test.Invoker

        RulesExchangeHandler handler = new RulesExchangeHandler(rci_model, serviceDomain, serviceName);
        Service service = serviceDomain.registerService(serviceName, JavaService.fromClass(AccessAttachment.class), handler);
        serviceDomain.registerServiceReference(service.getName(), service.getInterface(), service.getProviderHandler());
        handler.start();
        DataSource attachment = new TestDataSource("someAttach", "text/plain", "someAttachData");
        new Invoker(serviceDomain, serviceName).operation("process").attachment(attachment.getName(), attachment).sendInOnly(holder);
        handler.stop();
        Assert.assertEquals("someAttachData", holder.getValue());
    }

Examples of org.testng.internal.Invoker

        m_testClassesFromXml.addAll(xp.getXmlClasses());
      }
    }

    m_annotationFinder= annotationFinder;
    m_invoker= new Invoker(this, this, m_suite.getSuiteState(), m_annotationFinder);

    setVerbose(test.getVerbose());

    if (suite.getParallel() != null) {
      log(3, "Running the tests in '" + test.getName() + "' with parallel mode:" + suite.getParallel());

Examples of railo.transformer.bytecode.expression.Invoker

   
   
   

      String name=null;
      Invoker invoker=null;
    // Loop over nested Variables
    while (data.cfml.isValidIndex()) {
      ExprString nameProp = null,namePropUC = null;
      // .
      if (data.cfml.forwardIfCurrent('.')) {
        // Extract next Var String
                comments(data);
                Position line=data.cfml.getPosition();
                name = identifier(data,true);
        if(name==null)
          throw new TemplateException(data.cfml, "Invalid identifier");
                comments(data);
        nameProp=Identifier.toIdentifier(name,line,data.cfml.getPosition());
        namePropUC=Identifier.toIdentifier(name,data.settings.dotNotationUpper?Identifier.CASE_UPPER:Identifier.CASE_ORIGNAL,line,data.cfml.getPosition());
      }
      // []
      else if (data.cfml.forwardIfCurrent('[')) {
       
        // get Next Var
        nameProp = structElement(data);
        namePropUC=nameProp;
        // Valid Syntax ???
        if (!data.cfml.forwardIfCurrent(']'))
          throw new TemplateException(
            data.cfml,
            "Invalid Syntax Closing []] not found");
      }
      /* / :
      else if (data.cfml.forwardIfCurrent(':')) {
        // Extract next Var String
                comments(data);
                int line=data.cfml.getLine();
        name = identifier(true,true);
        if(name==null)
          throw new TemplateException(cfml, "Invalid identifier");
                comments(data);
               
        nameProp=LitString.toExprString(name,line);
      }*/
      // finish
      else {
        break;
      }

            comments(data);
           
            if(expr instanceof Invoker)  {
              invoker=(Invoker) expr;
            }
            else {
              invoker=new ExpressionInvoker(expr);
              expr=invoker;
            }
      // Method
      if (data.cfml.isCurrent('(')) {
        if(nameProp==null && name!=null)nameProp=Identifier.toIdentifier(name, Identifier.CASE_ORIGNAL,null,null);// properly this is never used
        invoker.addMember(getFunctionMember(data,nameProp, false));
      }
     
      // property
      else invoker.addMember(new DataMember(namePropUC));
     
    }
   
    return expr; 
  }
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.