Code example for InvocationHandler

Methods: invoke

0
        this.handler = handler;
    } 
 
    @Override 
    public Object intercept(final Object obj, final Method method, final Object[] args, final MethodProxy proxy) throws Throwable {
        return handler.invoke(obj, method, args);
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java