org.jboss.seam.persistence.hibernate
Class HibernateManagedPersistenceContextProxyHandler
java.lang.Object
org.jboss.seam.persistence.hibernate.HibernateManagedPersistenceContextProxyHandler
- All Implemented Interfaces:
- Serializable, InvocationHandler, Synchronization
public class HibernateManagedPersistenceContextProxyHandler
- extends Object
- implements InvocationHandler, Serializable, Synchronization
Proxy handler for the seam managed Hibernate session. This handler makes sure
that the EntityManager is enrolled in the current transaction before passing
the call through to the delegate
- Author:
- Stuart Douglas
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateManagedPersistenceContextProxyHandler
public HibernateManagedPersistenceContextProxyHandler(org.hibernate.Session delegate,
javax.enterprise.inject.spi.BeanManager beanManager,
Set<Annotation> qualifiers,
PersistenceContexts persistenceContexts,
SeamPersistenceProvider provider)
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable
afterCompletion
public void afterCompletion(int status)
- Specified by:
afterCompletion in interface Synchronization
beforeCompletion
public void beforeCompletion()
- Specified by:
beforeCompletion in interface Synchronization
Copyright © 2010 Seam Framework. All Rights Reserved.