Class DefaultMethodInvokingMethodInterceptor

java.lang.Object
org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class DefaultMethodInvokingMethodInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor
Method interceptor to invoke default methods on the repository proxy.
Author:
Oliver Gierke, Jens Schauder, Mark Paluch, Johannes Englmeier
  • Constructor Details

    • DefaultMethodInvokingMethodInterceptor

      public DefaultMethodInvokingMethodInterceptor()
  • Method Details

    • hasDefaultMethods

      public static boolean hasDefaultMethods(Class<?> interfaceClass)
      Returns whether the interfaceClass declares default methods.
      Parameters:
      interfaceClass - the Class to inspect.
      Returns:
      true if interfaceClass declares a default method.
      Since:
      2.2
    • invoke

      @Nullable public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Throws:
      Throwable