Class BarfingInvocationHandler

java.lang.Object
org.apache.calcite.util.BarfingInvocationHandler
All Implemented Interfaces:
InvocationHandler
Direct Known Subclasses:
SqlUtil.DatabaseMetaDataInvocationHandler

public class BarfingInvocationHandler extends Object implements InvocationHandler
A class derived from 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.

See Also: