org.jboss.seam.util
Class DelegatingInvocationHandler<T>

java.lang.Object
  extended by org.jboss.seam.util.DelegatingInvocationHandler<T>
All Implemented Interfaces:
InvocationHandler

public class DelegatingInvocationHandler<T>
extends Object
implements InvocationHandler

An InvocationHandler implementation that delegates method invocations to a specified object, optionally allowing the method to be overridden locally.

Author:
Shane Bryzak

Constructor Summary
DelegatingInvocationHandler(T delegate)
           
 
Method Summary
 T getDelegate()
           
 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

DelegatingInvocationHandler

public DelegatingInvocationHandler(T delegate)
Method Detail

getDelegate

public T getDelegate()

invoke

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


Copyright © 2011 Seam Framework. All Rights Reserved.