org.jpu.patterns.proxy
Class DelegatingProxy

java.lang.Object
  extended byorg.jpu.patterns.proxy.JPUInvocationHandler
      extended byorg.jpu.patterns.proxy.DelegatingProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, java.io.Serializable

public class DelegatingProxy
extends JPUInvocationHandler

Experimental class; do not use.

See Also:
Serialized Form

Nested Class Summary
protected static interface DelegatingProxy.Delegator
           
protected static class DelegatingProxy.Mapping
           
 
Nested classes inherited from class org.jpu.patterns.proxy.JPUInvocationHandler
JPUInvocationHandler.DelegationCacheValue, JPUInvocationHandler.DelegationState
 
Constructor Summary
DelegatingProxy()
           
 
Method Summary
protected  void addDelegateMappings(java.util.List dest)
           
protected  boolean doInvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object[] result)
          Overrides the method of JPUInvocationHandler.
 
Methods inherited from class org.jpu.patterns.proxy.JPUInvocationHandler
autoDelegateToSelf, delegate, doGetImplementedInterfaces, getCacheHits, getCacheMisses, getCurrentInterfaceMethod, getDefaultClassLoader, getDelegationMethod, getDelegationState, getDelegationTargetMethod, getInterfaces, getProxy, initializeProxy, invoke, newProxy, newProxy, newProxy, resetCacheCounters, rethrow, setDelegationState, throwUnhandledException, throwUnlistedException, wouldDelegationInfinitelyRecurse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingProxy

public DelegatingProxy()
Method Detail

doInvoke

protected boolean doInvoke(java.lang.Object proxy,
                           java.lang.reflect.Method method,
                           java.lang.Object[] args,
                           java.lang.Object[] result)
                    throws java.lang.Throwable
Description copied from class: JPUInvocationHandler
Overrides the method of JPUInvocationHandler. If autoDelegateToSelf() returns true, calls JPUInvocationHandler.delegate(Object,Object,Method,Object[],Object[]). Returns whether the invocation was handled or not.

Overrides:
doInvoke in class JPUInvocationHandler
Throws:
java.lang.Throwable

addDelegateMappings

protected void addDelegateMappings(java.util.List dest)


Copyright (c) 2001-2003 - Apache Software Foundation