org.jboss.seam.persistence.hibernate
Class HibernateManagedSessionBeanLifecycle
java.lang.Object
org.jboss.seam.persistence.hibernate.HibernateManagedSessionBeanLifecycle
- All Implemented Interfaces:
- org.jboss.solder.bean.ContextualLifecycle<org.hibernate.Session>
public class HibernateManagedSessionBeanLifecycle
- extends Object
- implements org.jboss.solder.bean.ContextualLifecycle<org.hibernate.Session>
lifecycle for seam managed hibernate sessions
- Author:
- Stuart Douglas
|
Method Summary |
org.hibernate.Session |
create(javax.enterprise.inject.spi.Bean<org.hibernate.Session> bean,
javax.enterprise.context.spi.CreationalContext<org.hibernate.Session> arg0)
creates the proxy |
void |
destroy(javax.enterprise.inject.spi.Bean<org.hibernate.Session> bean,
org.hibernate.Session session,
javax.enterprise.context.spi.CreationalContext<org.hibernate.Session> arg1)
|
protected org.hibernate.SessionFactory |
getSessionFactory()
lazily resolve the relevant SessionFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
qualifiers
protected final Annotation[] qualifiers
manager
protected final javax.enterprise.inject.spi.BeanManager manager
HibernateManagedSessionBeanLifecycle
public HibernateManagedSessionBeanLifecycle(Set<Annotation> qualifiers,
ClassLoader loader,
javax.enterprise.inject.spi.BeanManager manager)
create
public org.hibernate.Session create(javax.enterprise.inject.spi.Bean<org.hibernate.Session> bean,
javax.enterprise.context.spi.CreationalContext<org.hibernate.Session> arg0)
- creates the proxy
- Specified by:
create in interface org.jboss.solder.bean.ContextualLifecycle<org.hibernate.Session>
destroy
public void destroy(javax.enterprise.inject.spi.Bean<org.hibernate.Session> bean,
org.hibernate.Session session,
javax.enterprise.context.spi.CreationalContext<org.hibernate.Session> arg1)
- Specified by:
destroy in interface org.jboss.solder.bean.ContextualLifecycle<org.hibernate.Session>
getSessionFactory
protected org.hibernate.SessionFactory getSessionFactory()
- lazily resolve the relevant SessionFactory
Copyright © 2011 Seam Framework. All Rights Reserved.