org.nakedobjects.plugins.headless.viewer.internal
Class CgLibClassProxyFactory<T>

java.lang.Object
  extended by org.nakedobjects.plugins.headless.viewer.internal.CgLibClassProxyFactory<T>
All Implemented Interfaces:
IProxyFactory<T>

public class CgLibClassProxyFactory<T>
extends java.lang.Object
implements IProxyFactory<T>

Factory generating a mock for a class.

Note that this class is stateful


Constructor Summary
CgLibClassProxyFactory()
           
 
Method Summary
 T createProxy(java.lang.Class<T> toProxyClass, java.lang.reflect.InvocationHandler handler)
           
 T createProxy(T toProxy, java.lang.reflect.InvocationHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CgLibClassProxyFactory

public CgLibClassProxyFactory()
Method Detail

createProxy

public T createProxy(T toProxy,
                     java.lang.reflect.InvocationHandler handler)
Specified by:
createProxy in interface IProxyFactory<T>

createProxy

public T createProxy(java.lang.Class<T> toProxyClass,
                     java.lang.reflect.InvocationHandler handler)
Specified by:
createProxy in interface IProxyFactory<T>


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.