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

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

public class DelegatingInvocationHandler<T>
extends java.lang.Object
implements java.lang.reflect.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()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.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 java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable


Copyright © 2011 Seam Framework. All Rights Reserved.