Examples of invoke()


Examples of com.britesnow.snow.web.handler.WebActionHandlerRef.invoke()

        // --------- Invoke Method --------- //

        Object result = null;

        try {
            result = webActionRef.invoke(rc);
        } catch (Throwable t) {
            // TODO: add support for WebExceptionCatcher
            throw Throwables.propagate(t);
        }
        // --------- /Invoke Method --------- //
View Full Code Here

Examples of com.britesnow.snow.web.handler.WebResourceHandlerRef.invoke()

    }

    void processWebResourceHandler(RequestContext rc) {
        WebResourceHandlerRef webResourceHandlerRef = webObjectRegistry.getWebResourceHandlerRef(rc.getResourcePath());
        if (webResourceHandlerRef != null) {
            webResourceHandlerRef.invoke(rc);
        } else {
            throw new RuntimeException("No WebResourceHandler for " + rc.getResourcePath());
        }
    }
View Full Code Here

Examples of com.britesnow.snow.web.param.resolver.WebParamResolverRef.invoke()

        for (int i = 0; i < paramTypes.length ; i++){
            Class paramType = paramTypes[i];
            AnnotationMap annotationMap = new AnnotationMap(paramAnnotationsArray[i]);
            WebParamResolverRef paramResolverRef = paramResolverRefs[i];
           
            Object value = paramResolverRef.invoke(annotationMap, paramType, rc);
           
            values[i] = value;
        }
       
        // invoke the WebHandler method
View Full Code Here

Examples of com.caucho.bytecode.CodeWriterAttribute.invoke()

    code.pushObjectVar(0);
    code.getField(jClass.getThisClass(), "_factory",
                  "Lcom/caucho/config/inject/InjectManager$ReferenceFactory;");
   
    code.invoke("com/caucho/config/inject/InjectManager$ReferenceFactory",
                "create",
                "()Ljava/lang/Object;",
                3, 1);

    code.cast(method.getDeclaringClass().getName().replace('.', '/'));
View Full Code Here

Examples of com.caucho.hessian.server.HessianSkeleton.invoke()

            if (! request.getMethod().equalsIgnoreCase("POST")) {
                response.setStatus(500);
            } else {
                RpcContext.getContext().setRemoteAddress(request.getRemoteAddr(), request.getRemotePort());
                try {
                    skeleton.invoke(request.getInputStream(), response.getOutputStream());
                } catch (Throwable e) {
                    throw new ServletException(e);
                }
            }
        }
View Full Code Here

Examples of com.consol.citrus.ws.server.WebServiceEndpoint.invoke()

        expect(soapResponse.getPayloadResult()).andReturn(soapResponsePayload).once();
       
        replay(messageContext, soapRequest, soapRequestHeader, soapResponse);
       
        endpoint.invoke(messageContext);
       
        Assert.assertEquals(soapResponsePayload.toString(), responseMessage.getPayload());
       
        verify(messageContext, soapRequest, soapRequestHeader, soapResponse);
    }
View Full Code Here

Examples of com.dragome.services.ServiceInvocation.invoke()

          executorService.execute(new Runnable()
          {
            public void run()
            {
              ServiceInvocation serviceInvocation= (ServiceInvocation) ServiceLocator.getInstance().getSerializationService().deserialize(finalMessage);
              serviceInvocation.invoke();
            }
          });
        }
      }
      while (currentMessage != null);
View Full Code Here

Examples of com.esotericsoftware.reflectasm.MethodAccess.invoke()

    Method method = SomeClass.class.getMethod("getName");

    for (int i = 0; i < 100; i++) {
      for (int ii = 0; ii < count; ii++)
        dontCompileMeAway[ii] = access.invoke(someObject, index);
      for (int ii = 0; ii < count; ii++)
        dontCompileMeAway[ii] = method.invoke(someObject);
    }
    warmup = false;
View Full Code Here

Examples of com.firefly.utils.ReflectUtils.MethodProxy.invoke()

 
  @Test
  public void testProxyMethod() throws NoSuchMethodException, SecurityException, Throwable {
    Foo foo = new Foo();
    MethodProxy proxy = ReflectUtils.getMethodProxy(Foo.class.getMethod("setProperty", String.class, boolean.class));
    Assert.assertThat(proxy.invoke(foo, "proxy foo", true), nullValue());
    Assert.assertThat(foo.getName(), is("proxy foo"));
    Assert.assertThat(foo.isFailure(), is(true));
   
    proxy = ReflectUtils.getMethodProxy(ReflectUtils.getGetterMethod(Foo.class, "name"));
    Assert.assertThat((String)proxy.invoke(foo), is("proxy foo"));
View Full Code Here

Examples of com.firefly.utils.json.support.ParserMetaInfo.invoke()

      char[] field = reader.readField(parser.getPropertyName());
      if(!reader.isColon())
        throw new JsonException("missing ':'");
     
      if(field == null) { // 顺序相同,快速跳过
        parser.invoke(obj, reader);
      } else {
        ParserMetaInfo np = find(field);
        if(np != null)
          np.invoke(obj, reader);
        else
View Full Code Here
TOP
Copyright © 2015 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.