org.hibernate.proxy.pojo.javassist
Class JavassistLazyInitializer
- MethodHandler, LazyInitializer
public class JavassistLazyInitializer
implements MethodHandler
A Javassist-based lazy initializer proxy.
static HibernateProxy | getProxy(Class factory, String entityName, Class persistentClass, Class[] interfaces, Method getIdentifierMethod, Method setIdentifierMethod, AbstractComponentType componentIdType, Serializable id, SessionImplementor session)
|
static HibernateProxy | getProxy(String entityName, Class persistentClass, Class[] interfaces, Method getIdentifierMethod, Method setIdentifierMethod, AbstractComponentType componentIdType, Serializable id, SessionImplementor session)
|
static Class | getProxyFactory(Class persistentClass, Class[] interfaces)
|
Object | invoke(Object proxy, Method thisMethod, Method proceed, Object[] args)
|
protected Object | serializableProxy()
|
getEntityName , getIdentifier , getImplementation , getImplementation , getSession , getTarget , initialize , isConnectedToSession , isUninitialized , isUnwrap , setIdentifier , setImplementation , setSession , setUnwrap |
getProxyFactory
public static Class getProxyFactory(Class persistentClass,
Class[] interfaces)
throws HibernateException
invoke
public Object invoke(Object proxy,
Method thisMethod,
Method proceed,
Object[] args)
throws Throwable