Class DefaultExecutableInvoker

  • All Implemented Interfaces:
    ExecutableInvoker

    @API(status=INTERNAL,
         since="5.9")
    public class DefaultExecutableInvoker
    extends java.lang.Object
    implements ExecutableInvoker
    Since:
    5.9
    • Method Detail

      • invoke

        public <T> T invoke​(java.lang.reflect.Constructor<T> constructor,
                            java.lang.Object outerInstance)
        Description copied from interface: ExecutableInvoker
        Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.

        Use this method when invoking the constructor for an inner class.

        Specified by:
        invoke in interface ExecutableInvoker
        Parameters:
        constructor - the constructor to invoke and resolve parameters for
        outerInstance - the outer instance to supply as the first argument to the constructor; must be null for top-level classes or static nested classes
      • invoke

        public java.lang.Object invoke​(java.lang.reflect.Method method,
                                       java.lang.Object target)
        Description copied from interface: ExecutableInvoker
        Invoke the supplied method with dynamic parameter resolution.
        Specified by:
        invoke in interface ExecutableInvoker
        Parameters:
        method - the method to invoke and resolve parameters for
        target - the target on which the executable will be invoked; can be null for static methods