de.keepondreaming.xml
Class ClassProxy

java.lang.Object
  extended by de.keepondreaming.xml.ClassProxy
All Implemented Interfaces:
ClassProxyAccess, ProxyClassCreator, java.lang.reflect.InvocationHandler

public class ClassProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, ClassProxyAccess

Creates a runtime proxy for an interface. Adds the interface ClassProxyAccess to ease attribute access $Author: wintermond $ $Date: 2005/07/09 09:54:22 $ $Log: ClassProxy.java,v $ Revision 1.4 2005/07/09 09:54:22 wintermond Javadoc and implemented ProxyClassCreator Revision 1.3 2005/07/09 08:25:49 wintermond new cvs substitution tag


Constructor Summary
ClassProxy()
          Default constructor
 
Method Summary
 java.lang.Object getAttribute(java.lang.String key)
          Returns the attribute value of the given key.
 java.lang.Class getWrappedClass(java.lang.Object object)
          Returns the target interface of the object, which is an instance created by Proxy
 java.lang.Object invoke(java.lang.Object arg0, java.lang.reflect.Method method, java.lang.Object[] parameters)
           
 void setAttribute(java.lang.String key, java.lang.Object value)
          Sets the attribute with the given key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassProxy

public ClassProxy()
Default constructor

Method Detail

invoke

public java.lang.Object invoke(java.lang.Object arg0,
                               java.lang.reflect.Method method,
                               java.lang.Object[] parameters)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Description copied from interface: ClassProxyAccess
Returns the attribute value of the given key.

Specified by:
getAttribute in interface ClassProxyAccess
Returns:
The value currently assigned to the key key

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object value)
Description copied from interface: ClassProxyAccess
Sets the attribute with the given key

Specified by:
setAttribute in interface ClassProxyAccess

getWrappedClass

public java.lang.Class getWrappedClass(java.lang.Object object)
Description copied from interface: ProxyClassCreator
Returns the target interface of the object, which is an instance created by Proxy

Specified by:
getWrappedClass in interface ProxyClassCreator
Returns:
Target interface of object usable by XmlConverter


Copyright © -2005 . All Rights Reserved.