Examples of Invocation


Examples of alt.jiapi.reflect.instruction.Invocation

     *
     * @return Name of the hotspot
     */
    public String getName() {
        if (endIns instanceof Invocation) {
            Invocation inv = (Invocation)endIns;
            StringBuffer sb = new StringBuffer();
            if (!"<init>".equals(inv.getMethodName())) {
                sb.append(inv.getReturnType());
                sb.append(' ');
            }

            sb.append(inv.getClassName());
            sb.append('.');
            sb.append(inv.getMethodName());
            sb.append('(');

            String[] params = inv.getParameterTypes();
            for (int i = 0; i < params.length; i++) {
                sb.append(params[i]);
                if (i < params.length - 1) {
                    sb.append(',');
                }
View Full Code Here

Examples of ch.softappeal.yass.core.Invocation

      methodMapper = methodMapper(service.contractId.contract);
      implementation = service.implementation;
    }

    Reply invoke(final Interceptor invocationInterceptor, final Method method, @Nullable final Object[] arguments) {
      final Invocation invocation = new Invocation() {
        @Override public Object proceed() throws Throwable {
          try {
            return method.invoke(implementation, arguments);
          } catch (final InvocationTargetException e) {
            throw e.getCause();
View Full Code Here

Examples of com.alibaba.dubbo.rpc.Invocation

                try {
                    client = RemoteServer.getClientHost();
                } catch (ServerNotActiveException e) {
                    // Ignore it.
                }
                Invocation inv = new RpcInvocation(invocation.getMethodName(),
                        invocation.getParameterTypes(), invocation.getArguments());
                try {
                    RpcContext.getContext().setRemoteAddress(client, 0);
                    return invoker.invoke(inv).recreate();
                } catch (RpcException e) {
View Full Code Here

Examples of com.bacoder.parser.java.api.Invocation

      return null;
    }

    Expression expression = getAdapter(ExpressionAdapter.class).adapt(expressionContext);

    Invocation invocation = null;
    if (expression instanceof ThisExpression) {
      invocation = createNode(context, ThisInvocation.class);
    } else if (expression instanceof SuperExpression) {
      invocation = createNode(context, SuperInvocation.class);
    } else if (expression instanceof Identifier) {
      MethodInvocation methodInvocation = createNode(context, MethodInvocation.class);
      methodInvocation.setName((Identifier) expression);
    } else if (expression instanceof ScopedExpression) {
      ScopedExpression scopedExpression = (ScopedExpression) expression;
      if (scopedExpression.getExpression() instanceof ThisExpression) {
        invocation = createNode(context, ThisInvocation.class);
        invocation.setScope(scopedExpression.getScope());
      } else if (scopedExpression.getExpression() instanceof SuperExpression) {
        invocation = createNode(context, SuperInvocation.class);
        invocation.setScope(scopedExpression.getScope());
      } else if (scopedExpression.getExpression() instanceof Identifier) {
        MethodInvocation methodInvocation = createNode(context, MethodInvocation.class);
        methodInvocation.setScope(scopedExpression.getScope());
        methodInvocation.setName((Identifier) scopedExpression.getExpression());
        invocation = methodInvocation;
      }
    }

    if (invocation == null) {
      GeneralInvocation generalInvocation = createNode(context, GeneralInvocation.class);
      if (expression instanceof ScopedExpression) {
        ScopedExpression scopedExpression = (ScopedExpression) expression;
        generalInvocation.setScope(scopedExpression.getScope());
        generalInvocation.setExpression(scopedExpression.getExpression());
        invocation = generalInvocation;
      } else {
        generalInvocation.setExpression(expression);
      }
      invocation = generalInvocation;
    }

    ExpressionListContext expressionListContext = getChild(context, ExpressionListContext.class);
    if (expressionListContext != null) {
      invocation.setArguments(getAdapter(ExpressionListAdapter.class).adapt(expressionListContext));
    }

    return invocation;
  }
View Full Code Here

Examples of com.caucho.server.dispatch.Invocation

      return null;

    HashMap<String,CacheItem> itemMap = new HashMap<String,CacheItem>();

    for (int i = 0; i < invocationList.size(); i++) {
      Invocation inv = (Invocation) invocationList.get(i);

      String uri = inv.getURI();
      int p = uri.indexOf('?');
      if (p >= 0)
        uri = uri.substring(0, p);

      CacheItem item = itemMap.get(uri);
View Full Code Here

Examples of com.caucho.server.dispatch.Invocation

    try {
      if (_method.getLength() == 0)
        throw new RuntimeException("HTTP protocol exception, expected method");

      Invocation invocation;

      invocation = getInvocation(getHost(),
                                 _uri.getBuffer(), _uri.getLength());

      getRequestFacade().setInvocation(invocation);

      startInvocation();

      if (getServer().isPreview() && ! "resin.admin".equals(getHost())) {
        return sendBusyResponse();
      }

      invocation.service(getRequestFacade(), getResponseFacade());
    } catch (ClientDisconnectException e) {
      throw e;
    } catch (Throwable e) {
      log.log(Level.FINER, e.toString(), e);
View Full Code Here

Examples of com.caucho.server.dispatch.Invocation

    if (url == null)
      throw new IllegalArgumentException(L.l("request dispatcher url can't be null."));
    else if (! url.startsWith("/"))
      throw new IllegalArgumentException(L.l("request dispatcher url `{0}' must be absolute", url));

    Invocation includeInvocation = new Invocation();
    Invocation forwardInvocation = new Invocation();
    Invocation errorInvocation = new Invocation();
    Invocation dispatchInvocation = new Invocation();
    Invocation requestInvocation = dispatchInvocation;
    InvocationDecoder decoder = new InvocationDecoder();

    String rawURI = url;

    try {
View Full Code Here

Examples of com.caucho.server.dispatch.Invocation

                        host, getServerPort(),
                        uri, uriLength);

    InvocationServer server = _server.getInvocationServer();
   
    Invocation invocation = server.getInvocation(_invocationKey);

    if (invocation != null)
      return invocation.getRequestInvocation(_requestFacade);

    invocation = server.createInvocation();
    invocation.setSecure(isSecure());

    if (host != null) {
      String hostName = host.toString().toLowerCase(Locale.ENGLISH);

      invocation.setHost(hostName);
      invocation.setPort(getServerPort());

      // Default host name if the host doesn't have a canonical
      // name
      int p = hostName.lastIndexOf(':');
      int q = hostName.lastIndexOf(']');
      if (p > 0 && q < p)
        invocation.setHostName(hostName.substring(0, p));
      else
        invocation.setHostName(hostName);
    }

    return buildInvocation(invocation, uri, uriLength);
  }
View Full Code Here

Examples of com.caucho.server.dispatch.Invocation

          return isSuspend();
        }
      }

      Invocation invocation = getRequestFacade().getInvocation();

      invocation.service(getRequestFacade(), getResponseFacade());
    } catch (ClientDisconnectException e) {
      _responseFacade.killCache();

      throw e;
    } catch (Throwable e) {
View Full Code Here

Examples of com.caucho.server.dispatch.Invocation

  }
 
  public Invocation getAsyncInvocation()
  {
    if (_asyncInvocation == null) {
      Invocation invocation = new Invocation();
      invocation.copyFrom(_dispatchInvocation);
     
      FilterChain chain = invocation.getFilterChain();
      chain = new ResumeFilterChain(chain, invocation.getWebApp());
     
      invocation.setFilterChain(chain);
     
      _asyncInvocation = invocation;
    }
   
    return _asyncInvocation;
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.