org.jboss.ejb3.entity.hibernate
Class ExtendedSessionInvocationHandler

java.lang.Object
  extended by org.jboss.ejb3.entity.hibernate.ExtendedSessionInvocationHandler
All Implemented Interfaces:
java.io.Serializable, java.lang.reflect.InvocationHandler

public class ExtendedSessionInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, java.io.Serializable

Handle method execution delegation to an Hibernate Session following the extended persistence context rules

See Also:
Serialized Form

Constructor Summary
ExtendedSessionInvocationHandler()
           
ExtendedSessionInvocationHandler(java.lang.String identity)
           
 
Method Summary
 org.hibernate.Session getHibernateSession()
           
 javax.persistence.EntityManager getPersistenceContext()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedSessionInvocationHandler

public ExtendedSessionInvocationHandler(java.lang.String identity)

ExtendedSessionInvocationHandler

public ExtendedSessionInvocationHandler()
Method Detail

getPersistenceContext

public javax.persistence.EntityManager getPersistenceContext()

getHibernateSession

public org.hibernate.Session getHibernateSession()

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