Package ch.kk7.confij.binding.intf
Class DefaultMethodHandler
java.lang.Object
ch.kk7.confij.binding.intf.DefaultMethodHandler
public class DefaultMethodHandler
extends java.lang.Object
invoke default methods on interfaces.
inspired by: https://blog.jooq.org/2018/03/28/correct-reflective-access-to-interface-default-methods-in-java-8-9-10/
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDefaultMethodHandler.DefaultMethodException -
Constructor Summary
Constructors Constructor Description DefaultMethodHandler() -
Method Summary
Modifier and Type Method Description java.lang.ObjectinvokeDefaultMethod(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DefaultMethodHandler
public DefaultMethodHandler()
-
-
Method Details
-
invokeDefaultMethod
public java.lang.Object invokeDefaultMethod(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws DefaultMethodHandler.DefaultMethodException
-