org.springframework.datastore.proxy
Class JavassistProxyFactory

java.lang.Object
  extended by org.springframework.datastore.proxy.JavassistProxyFactory
All Implemented Interfaces:
ProxyFactory

public class JavassistProxyFactory
extends Object
implements ProxyFactory

A proxy factory that uses Javassist to create proxies

Since:
1.0

Constructor Summary
JavassistProxyFactory()
           
 
Method Summary
protected  Object createProxiedInstance(Session session, Class cls, Class proxyClass, Serializable id)
           
<T> T
createProxy(Session session, Class<T> type, Serializable key)
           
protected  Class getProxyClass(Class type)
           
protected  Object getProxyInstance(Session session, Class type, Serializable id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavassistProxyFactory

public JavassistProxyFactory()
Method Detail

createProxy

public <T> T createProxy(Session session,
                         Class<T> type,
                         Serializable key)
Specified by:
createProxy in interface ProxyFactory

createProxiedInstance

protected Object createProxiedInstance(Session session,
                                       Class cls,
                                       Class proxyClass,
                                       Serializable id)

getProxyInstance

protected Object getProxyInstance(Session session,
                                  Class type,
                                  Serializable id)

getProxyClass

protected Class getProxyClass(Class type)