Package org.platformlayer.ops.reflection

Examples of org.platformlayer.ops.reflection.MethodInvoker


    Method method = findTargetMethod(controller, scope);
    if (method == null) {
      throw new IllegalStateException("Cannot find handler for operation on " + controller.getClass());
    }

    MethodInvoker invoker = invokerProvider.get();

    if (scope != null) {
      invoker.addProvider(new Function<Class<?>, Object>() {
        @Override
        public Object apply(Class<?> clazz) {
          return scope.getInstance(clazz);
        }
      });
    }

    invoker.invokeMethod(controller, method);
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.reflection.MethodInvoker

Copyright © 2018 www.massapicom. 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.