com.liferay.portal.spring.hibernate
Class SessionFactoryInvocationHandler

java.lang.Object
  extended by com.liferay.portal.spring.hibernate.SessionFactoryInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class SessionFactoryInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

View Source

See http://support.liferay.com/browse/LEP-2996.

Author:
Brian Wing Shun Chan

Constructor Summary
SessionFactoryInvocationHandler(org.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
protected  org.hibernate.classic.Session wrapLiferaySession(org.hibernate.classic.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionFactoryInvocationHandler

public SessionFactoryInvocationHandler(org.hibernate.SessionFactory sessionFactory)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

wrapLiferaySession

protected org.hibernate.classic.Session wrapLiferaySession(org.hibernate.classic.Session session)