mrcode.duckprxy.impl
Class AbstractPrxyInvocationHandler

java.lang.Object
  extended by mrcode.duckprxy.impl.AbstractPrxyInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Direct Known Subclasses:
PrxyInvocationHanlder, PrxyPreCompInvocationHandler

public abstract class AbstractPrxyInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler


Nested Class Summary
protected static class AbstractPrxyInvocationHandler.DelegateClassInformation
           
 
Field Summary
protected  java.lang.Object delegate
           
 
Constructor Summary
AbstractPrxyInvocationHandler(java.lang.Object delegate)
           
 
Method Summary
protected  java.lang.Object[] getDelegateArguments(java.lang.String name, java.lang.reflect.Method delegateMethod, java.lang.Object[] args)
           
protected  AbstractPrxyInvocationHandler.DelegateClassInformation getDelegateClassInformation(java.lang.Class<?> delegateClass)
           
 DuckArg getDuckArg(java.lang.annotation.Annotation[] annotations)
           
protected  java.lang.Object getSubDelegate(java.lang.Object proxy)
           
abstract  java.lang.reflect.Method getSubDelegateGetter()
           
protected  java.util.List<MethodUtils.MethodRetrieveStrategy> makeStrategies(java.lang.Class<?> delegateClass, AbstractPrxyInvocationHandler.DelegateClassInformation info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
 

Field Detail

delegate

protected final java.lang.Object delegate
Constructor Detail

AbstractPrxyInvocationHandler

public AbstractPrxyInvocationHandler(java.lang.Object delegate)
Method Detail

getSubDelegateGetter

public abstract java.lang.reflect.Method getSubDelegateGetter()

getSubDelegate

protected java.lang.Object getSubDelegate(java.lang.Object proxy)

makeStrategies

protected java.util.List<MethodUtils.MethodRetrieveStrategy> makeStrategies(java.lang.Class<?> delegateClass,
                                                                            AbstractPrxyInvocationHandler.DelegateClassInformation info)

getDelegateArguments

protected java.lang.Object[] getDelegateArguments(java.lang.String name,
                                                  java.lang.reflect.Method delegateMethod,
                                                  java.lang.Object[] args)

getDuckArg

public DuckArg getDuckArg(java.lang.annotation.Annotation[] annotations)

getDelegateClassInformation

protected AbstractPrxyInvocationHandler.DelegateClassInformation getDelegateClassInformation(java.lang.Class<?> delegateClass)


Copyright © 2008. All Rights Reserved.