public class DefaultMethodInvokingMethodInterceptor extends Object implements MethodInterceptor
Constructor and Description |
---|
DefaultMethodInvokingMethodInterceptor() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasDefaultMethods(Class<?> interfaceClass)
Returns whether the
interfaceClass declares default methods . |
Object |
invoke(MethodInvocation invocation) |
public DefaultMethodInvokingMethodInterceptor()
public static boolean hasDefaultMethods(Class<?> interfaceClass)
interfaceClass
declares default methods
.interfaceClass
- the Class
to inspect.interfaceClass
declares a default method.@Nullable public Object invoke(MethodInvocation invocation) throws Throwable
invoke
in interface MethodInterceptor
Throwable
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.