public class BarfingInvocationHandler extends Object implements InvocationHandler
BarfingInvocationHandler handles a method
call by looking for a method in itself with identical parameters. If no such
method is found, it throws UnsupportedOperationException.
It is useful when you are prototyping code. You can rapidly create a prototype class which implements the important methods in an interface, then implement other methods as they are called.
DelegatingInvocationHandler| Modifier | Constructor and Description |
|---|---|
protected |
BarfingInvocationHandler() |
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowableprotected UnsupportedOperationException noMethod(Method method)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.