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

Quick Search    Search Deep

org.hibernate.proxy
Interface ProxyFactory  view ProxyFactory download ProxyFactory.java

All Known Implementing Classes:
CGLIBProxyFactory, Dom4jProxyFactory, MapProxyFactory

public interface ProxyFactory

Contract for run-time, proxy-based lazy initialization proxies.


Method Summary
 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.
 

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
Called immediately after instantiation of this factory.

Essentially equivalent to contructor injection, but contracted here via interface.


getProxy

public HibernateProxy getProxy(java.io.Serializable id,
                               org.hibernate.engine.SessionImplementor session)
                        throws org.hibernate.HibernateException
Create a new proxy instance