org.hibernate.proxy
Class CGLIBLazyInitializer

java.lang.Object
  extended byorg.hibernate.proxy.AbstractLazyInitializer
      extended byorg.hibernate.proxy.BasicLazyInitializer
          extended byorg.hibernate.proxy.CGLIBLazyInitializer
All Implemented Interfaces:
net.sf.cglib.proxy.Callback, LazyInitializer, net.sf.cglib.proxy.MethodInterceptor

public final class CGLIBLazyInitializer
extends BasicLazyInitializer
implements net.sf.cglib.proxy.MethodInterceptor

A LazyInitializer implemented using the CGLIB bytecode generation library


Field Summary
 
Fields inherited from class org.hibernate.proxy.BasicLazyInitializer
componentIdType, getIdentifierMethod, INVOKE_IMPLEMENTATION, overridesEquals, persistentClass, setIdentifierMethod
 
Method Summary
static HibernateProxy getProxy(Class factory, String entityName, Class persistentClass, Class[] interfaces, Method getIdentifierMethod, Method setIdentifierMethod, AbstractComponentType componentIdType, Serializable id, SessionImplementor session)
           
static Class getProxyFactory(Class persistentClass, Class[] interfaces)
           
 Object intercept(Object proxy, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
           
protected  Object serializableProxy()
           
 
Methods inherited from class org.hibernate.proxy.BasicLazyInitializer
getPersistentClass, invoke
 
Methods inherited from class org.hibernate.proxy.AbstractLazyInitializer
getEntityName, getIdentifier, getImplementation, getImplementation, getSession, getTarget, initialize, isUninitialized, isUnwrap, setIdentifier, setImplementation, setSession, setUnwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProxy

public static HibernateProxy getProxy(Class factory,
                                      String entityName,
                                      Class persistentClass,
                                      Class[] interfaces,
                                      Method getIdentifierMethod,
                                      Method setIdentifierMethod,
                                      AbstractComponentType componentIdType,
                                      Serializable id,
                                      SessionImplementor session)
                               throws HibernateException
Throws:
HibernateException

getProxyFactory

public static Class getProxyFactory(Class persistentClass,
                                    Class[] interfaces)
                             throws HibernateException
Throws:
HibernateException

intercept

public Object intercept(Object proxy,
                        Method method,
                        Object[] args,
                        net.sf.cglib.proxy.MethodProxy methodProxy)
                 throws Throwable
Specified by:
intercept in interface net.sf.cglib.proxy.MethodInterceptor
Throws:
Throwable

serializableProxy

protected Object serializableProxy()
Specified by:
serializableProxy in class BasicLazyInitializer