Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.proxy.pojo.javassist
Class JavassistProxyFactory  view JavassistProxyFactory download JavassistProxyFactory.java

java.lang.Object
  extended byorg.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.


Field Summary
private  org.hibernate.type.AbstractComponentType componentIdType
           
private  java.lang.String entityName
           
private  java.lang.Class factory
           
private  java.lang.reflect.Method getIdentifierMethod
           
private  java.lang.Class[] interfaces
           
protected static java.lang.Class[] NO_CLASSES
           
private  java.lang.Class persistentClass
           
private  java.lang.reflect.Method setIdentifierMethod
           
 
Constructor Summary
JavassistProxyFactory()
           
 
Method Summary
 org.hibernate.proxy.HibernateProxy getProxy(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
          Create a new proxy instance
 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)
          Called immediately after instantiation of this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JavassistProxyFactory

public JavassistProxyFactory()
Method Detail

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