Class AbstractInvocationHandler

java.lang.Object
com.google.common.reflect.AbstractInvocationHandler
All Implemented Interfaces:
InvocationHandler

public abstract class AbstractInvocationHandler extends Object implements InvocationHandler
Abstract implementation of InvocationHandler that handles Object.equals(java.lang.Object), Object.hashCode() and Object.toString(). For example:
 class Unsupported extends AbstractInvocationHandler {
   protected Object handleInvocation(Object proxy, Method method, Object[] args) {
     throw new UnsupportedOperationException();
   }
 }

 CharSequence unsupported = Reflection.newProxy(CharSequence.class, new Unsupported());
 
Since:
12.0
Author:
Ben Yu