Class MethodExecutionStrategy

    • Method Detail

      • execute

        public java.lang.Object execute​(java.lang.Object instance)
                                 throws javax.script.ScriptException
        Specified by:
        execute in interface ExecutionStrategy
        Throws:
        javax.script.ScriptException
      • byMethod

        public static MethodExecutionStrategy byMethod​(java.lang.reflect.Method method,
                                                       java.lang.Object... arguments)
      • byArgumentTypes

        public static MethodExecutionStrategy byArgumentTypes​(java.lang.Class<?> clazz,
                                                              java.lang.String methodName,
                                                              java.lang.Class<?>[] argumentTypes,
                                                              java.lang.Object... arguments)
                                                       throws javax.script.ScriptException
        Throws:
        javax.script.ScriptException
      • byMatchingArguments

        public static MethodExecutionStrategy byMatchingArguments​(java.lang.Class<?> clazz,
                                                                  java.lang.String methodName,
                                                                  java.lang.Object... arguments)
                                                           throws javax.script.ScriptException
        Throws:
        javax.script.ScriptException