FileDocCategorySizeDatePackage
JavassistProxyFactory.javaAPI DocHibernate 3.2.51850Fri Feb 03 15:15:20 GMT 2006org.hibernate.proxy.pojo.javassist

JavassistProxyFactory

public class JavassistProxyFactory extends Object implements Serializable, org.hibernate.proxy.ProxyFactory
A {@link ProxyFactory} implementation for producing Javassist-based proxies.
author
Muga Nishizawa

Fields Summary
protected static final Class[]
NO_CLASSES
private Class
persistentClass
private String
entityName
private Class[]
interfaces
private Method
getIdentifierMethod
private Method
setIdentifierMethod
private org.hibernate.type.AbstractComponentType
componentIdType
private Class
factory
Constructors Summary
Methods Summary
public org.hibernate.proxy.HibernateProxygetProxy(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)

		return JavassistLazyInitializer.getProxy(
				factory,
		        entityName,
				persistentClass,
		        interfaces,
		        getIdentifierMethod,
				setIdentifierMethod,
		        componentIdType,
		        id,
		        session
		);
	
public voidpostInstantiate(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)


	  
			  
			  
	          
			  
	          
			    
		this.entityName = entityName;
		this.persistentClass = persistentClass;
		this.interfaces = (Class[]) interfaces.toArray(NO_CLASSES);
		this.getIdentifierMethod = getIdentifierMethod;
		this.setIdentifierMethod = setIdentifierMethod;
		this.componentIdType = componentIdType;
		factory = JavassistLazyInitializer.getProxyFactory( persistentClass, this.interfaces );