Examples of MethodInvoker


Examples of org.exoplatform.management.invocation.MethodInvoker

        MultivaluedMap<String, String> parameters = info.getQueryParameters();

        // Try first to get a property
        RestResourceProperty property = properties.get(name);
        if (property != null) {
            MethodInvoker getter = property.getGetterInvoker();
            if (getter != null) {
                return safeInvoke(getter, parameters);
            }
        }
View Full Code Here

Examples of org.exoplatform.management.invocation.MethodInvoker

    public Object put(@Context UriInfo info, @PathParam("name") String name) {
        MultivaluedMap<String, String> parameters = getParameters(info);
        // Try first to get a property
        RestResourceProperty property = properties.get(name);
        if (property != null) {
            MethodInvoker setter = property.getSetterInvoker();
            if (setter != null) {
                return safeInvoke(setter, parameters);
            }
        }
View Full Code Here

Examples of org.exoplatform.management.invocation.MethodInvoker

        //
        RestResourceMethod method = lookupMethod(methodName, parameters.keySet(), impact);

        //
        if (method != null) {
            MethodInvoker invoker = method.getMethodInvoker();
            return safeInvoke(invoker, parameters);
        }

        //
        return null;
View Full Code Here

Examples of org.exoplatform.services.rest.ext.management.invocation.MethodInvoker

     
      // Try first to get a property
      RestResourceProperty property = properties.get(name);
      if (property != null)
      {
         MethodInvoker getter = property.getGetterInvoker();
         if (getter != null)
         {
            return safeInvoke(getter, parameters);
         }
      }
View Full Code Here

Examples of org.exoplatform.services.rest.method.MethodInvoker

   {
      // save resource in hierarchy
      context.addMatchedResource(resource);

      Class<?> returnType = rmd.getResponseType();
      MethodInvoker invoker = rmd.getMethodInvoker();
      Object o = invoker.invokeMethod(resource, rmd, context);
      processResponse(o, returnType, request, response, rmd.produces());
   }
View Full Code Here

Examples of org.exoplatform.services.rest.method.MethodInvoker

      // save parameters values, actually parameters was save before, now just
      // map parameter's names to values
      context.setParameterNames(srmd.getUriPattern().getParameterNames());

      Class<?> returnType = srmd.getResponseType();
      MethodInvoker invoker = srmd.getMethodInvoker();
      Object o = invoker.invokeMethod(resource, srmd, context);
      processResponse(o, returnType, request, response, srmd.produces());
   }
View Full Code Here

Examples of org.exoplatform.services.rest.method.MethodInvoker

      // save parameters values, actually parameters was save before, now just
      // map parameter's names to values
      context.setParameterNames(srld.getUriPattern().getParameterNames());

      // NOTE Locators can't accept entity
      MethodInvoker invoker = srld.getMethodInvoker();
      resource = invoker.invokeMethod(resource, srld, context);

      AbstractResourceDescriptor descriptor = new AbstractResourceDescriptorImpl(resource);
      SingletonObjectFactory<AbstractResourceDescriptor> locResource =
         new SingletonObjectFactory<AbstractResourceDescriptor>(descriptor, resource);
View Full Code Here

Examples of org.jboss.resteasy.client.core.MethodInvoker

    for (Method method : iface.getMethods())
    {
      // ignore the as method to allow declaration in client interfaces
      if (!("as".equals(method.getName()) && Arrays.equals(method.getParameterTypes(), cClassArgArray)))
      {
        MethodInvoker invoker;
        Set<String> httpMethods = IsHttpMethod.getHttpMethods(method);
        if ((httpMethods == null || httpMethods.size() == 0) && method.isAnnotationPresent(Path.class) && method.getReturnType().isInterface())
        {
          invoker = new SubResourceInvoker(baseUri, method, config);
        }
View Full Code Here

Examples of org.jboss.resteasy.client.jaxrs.internal.proxy.MethodInvoker

         }
      }
    HashMap<Method, MethodInvoker> methodMap = new HashMap<Method, MethodInvoker>();
    for (Method method : iface.getMethods())
    {
         MethodInvoker invoker;
         Set<String> httpMethods = IsHttpMethod.getHttpMethods(method);
         if ((httpMethods == null || httpMethods.size() == 0) && method.isAnnotationPresent(Path.class) && method.getReturnType().isInterface())
         {
            invoker = new SubResourceInvoker((ResteasyWebTarget)base, method, config);
         }
View Full Code Here

Examples of org.jruby.java.invokers.MethodInvoker

        Method jmethod = getMethodFromClass(runtime, proxyClass, name, argTypesClasses);
        String prettyName = name + CodegenUtils.prettyParams(argTypesClasses);
       
        if (Modifier.isStatic(jmethod.getModifiers())) {
            MethodInvoker invoker = new StaticMethodInvoker(rubyClass, jmethod);
            return RubyMethod.newMethod(rubyClass, prettyName, rubyClass, name, invoker, proxyClass);
        } else {
            MethodInvoker invoker = new InstanceMethodInvoker(rubyClass, jmethod);
            return RubyUnboundMethod.newUnboundMethod(rubyClass, prettyName, rubyClass, name, invoker);
        }
    }
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.