java.lang.Object
org.hibernate.proxy.pojo.javassist.JavassistProxyFactory
- All Implemented Interfaces:
- org.hibernate.proxy.ProxyFactory, java.io.Serializable
- public class JavassistProxyFactory
- extends java.lang.Object
- implements org.hibernate.proxy.ProxyFactory, java.io.Serializable
A org.hibernate.proxy.ProxyFactory implementation for producing Javassist-based proxies.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_CLASSES
protected static final java.lang.Class[] NO_CLASSES
persistentClass
private java.lang.Class persistentClass
entityName
private java.lang.String entityName
interfaces
private java.lang.Class[] interfaces
getIdentifierMethod
private java.lang.reflect.Method getIdentifierMethod
setIdentifierMethod
private java.lang.reflect.Method setIdentifierMethod
componentIdType
private org.hibernate.type.AbstractComponentType componentIdType
factory
private java.lang.Class factory
JavassistProxyFactory
public JavassistProxyFactory()
postInstantiate
public void postInstantiate(java.lang.String entityName,
java.lang.Class persistentClass,
java.util.Set interfaces,
java.lang.reflect.Method getIdentifierMethod,
java.lang.reflect.Method setIdentifierMethod,
org.hibernate.type.AbstractComponentType componentIdType)
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.proxy.ProxyFactory
- Called immediately after instantiation of this factory.
Essentially equivalent to contructor injection, but contracted
here via interface.
- Specified by:
postInstantiate in interface org.hibernate.proxy.ProxyFactory
getProxy
public org.hibernate.proxy.HibernateProxy getProxy(java.io.Serializable id,
org.hibernate.engine.SessionImplementor session)
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.proxy.ProxyFactory
- Create a new proxy instance
- Specified by:
getProxy in interface org.hibernate.proxy.ProxyFactory