Top Description Fields Constructors Methods
org.hibernate.proxy.pojo.cglib

public final Class CGLIBLazyInitializer

extends BasicLazyInitializer
implements InvocationHandler
Class Inheritance
All Implemented Interfaces
net.sf.cglib.proxy.InvocationHandler, net.sf.cglib.proxy.Callback
Annotations
@Deprecated
Imports
java.io.Serializable, java.lang.reflect.InvocationTargetException, .Method, net.sf.cglib.proxy.Callback, .CallbackFilter, .Enhancer, .InvocationHandler, .NoOp, org.hibernate.HibernateException, .LazyInitializationException, org.hibernate.proxy.pojo.BasicLazyInitializer, org.hibernate.proxy.HibernateProxy, org.hibernate.engine.SessionImplementor, org.hibernate.type.CompositeType, org.hibernate.util.ReflectHelper, org.slf4j.LoggerFactory

Deprecated

Per HHH-5451 support for cglib as a bytecode provider has been deprecated.

A LazyInitializer implemented using the CGLIB bytecode generation library

Field Summary

Modifier and TypeField and Description
private boolean
private static final CallbackFilter
private Class<T>[]
Inherited from org.hibernate.proxy.pojo.BasicLazyInitializer:
componentIdTypegetIdentifierMethodINVOKE_IMPLEMENTATIONoverridesEqualspersistentClasssetIdentifierMethod

Constructor Summary

AccessConstructor and Description
private
CGLIBLazyInitializer(final String entityName, final Class<T> persistentClass, final Class<T>[] interfaces, final Serializable id, final Method getIdentifierMethod, final Method setIdentifierMethod, final CompositeType componentIdType, final SessionImplementor session)

Method Summary

Modifier and TypeMethod and Description
pack-priv static HibernateProxy
getProxy(final String entityName, final Class<T> persistentClass, final Class<T>[] interfaces, final Method getIdentifierMethod, final Method setIdentifierMethod, CompositeType componentIdType, final Serializable id, final SessionImplementor session)

public static HibernateProxy
getProxy(final Class<T> factory, final String entityName, final Class<T> persistentClass, final Class<T>[] interfaces, final Method getIdentifierMethod, final Method setIdentifierMethod, final CompositeType componentIdType, final Serializable id, final SessionImplementor session)

public static Class<T>
getProxyFactory(Class<T> persistentClass, Class<T>[] interfaces)

private static HibernateProxy
getProxyInstance(Class<T> factory, CGLIBLazyInitializer instance)

Deprecated as a consequence of CGLIBLazyInitializer being deprecated.
public Object
invoke(final Object proxy, final Method method, final Object[] args)

Implements net.sf.cglib.proxy.InvocationHandler.invoke.

protected Object
Inherited from org.hibernate.proxy.pojo.BasicLazyInitializer:
getPersistentClassinvoke

Field Detail

constructedback to summary
private boolean constructed
FINALIZE_FILTERback to summary
private static final CallbackFilter FINALIZE_FILTER
interfacesback to summary
private Class<T>[] interfaces

Constructor Detail

CGLIBLazyInitializerback to summary
private CGLIBLazyInitializer(final String entityName, final Class<T> persistentClass, final Class<T>[] interfaces, final Serializable id, final Method getIdentifierMethod, final Method setIdentifierMethod, final CompositeType componentIdType, final SessionImplementor session)

Method Detail

getProxyback to summary
pack-priv static HibernateProxy getProxy(final String entityName, final Class<T> persistentClass, final Class<T>[] interfaces, final Method getIdentifierMethod, final Method setIdentifierMethod, CompositeType componentIdType, final Serializable id, final SessionImplementor session) throws HibernateException
getProxyback to summary
public static HibernateProxy getProxy(final Class<T> factory, final String entityName, final Class<T> persistentClass, final Class<T>[] interfaces, final Method getIdentifierMethod, final Method setIdentifierMethod, final CompositeType componentIdType, final Serializable id, final SessionImplementor session) throws HibernateException
getProxyFactoryback to summary
public static Class<T> getProxyFactory(Class<T> persistentClass, Class<T>[] interfaces) throws HibernateException
getProxyInstanceback to summary
private static HibernateProxy getProxyInstance(Class<T> factory, CGLIBLazyInitializer instance) throws InstantiationException, IllegalAccessException

Deprecated

as a consequence of CGLIBLazyInitializer being deprecated. See corresponding docs for further information.

invokeback to summary
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable

Implements net.sf.cglib.proxy.InvocationHandler.invoke.

serializableProxyback to summary
protected Object serializableProxy()

Implements abstract org.hibernate.proxy.pojo.BasicLazyInitializer.serializableProxy.