info.joseluismartin.hibernate.aop
Class SessionAspect
java.lang.Object
info.joseluismartin.hibernate.aop.SessionAspect
public class SessionAspect
- extends Object
Spring AOP Aspect to apply session processors to current hibernate session.
- Author:
- Jose Luis Martin - (jlm@joseluismartin.info)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionAspect
public SessionAspect()
processSession
public void processSession(org.aspectj.lang.JoinPoint jp)
- Before advice to prepare Session before call
getSessionProcessors
public List<SessionProcessor> getSessionProcessors()
- Returns:
- the sessionProcessors
setSessionProcessors
public void setSessionProcessors(List<SessionProcessor> sessionProcessors)
- Parameters:
sessionProcessors - the sessionProcessors to set
getSessionFactory
public SessionFactory getSessionFactory()
- Returns:
- the sessionFactory
setSessionFactory
public void setSessionFactory(SessionFactory sessionFactory)
- Parameters:
sessionFactory - the sessionFactory to set
Copyright © 2012 JDAL. All Rights Reserved.