org.apache.maven.index.cli
Class PartialImplementation

java.lang.Object
  extended by org.apache.maven.index.cli.PartialImplementation
All Implemented Interfaces:
InvocationHandler

public class PartialImplementation
extends Object
implements InvocationHandler

An InvocationHandler that can be extended with methods from the proxied interface. While invocation it will look for a method within itself that matches the signature of the invoked proxy method. If found the method will be invoked and result returned, otherwise an UnsupportedOperationException will be thrown.

Author:
Alin Dreghiciu

Constructor Summary
PartialImplementation()
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartialImplementation

public PartialImplementation()
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.