info.joseluismartin.hibernate.aop
Class SessionAspect

java.lang.Object
  extended by 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)

Constructor Summary
SessionAspect()
           
 
Method Summary
 SessionFactory getSessionFactory()
           
 List<SessionProcessor> getSessionProcessors()
           
 void processSession(org.aspectj.lang.JoinPoint jp)
          Before advice to prepare Session before call
 void setSessionFactory(SessionFactory sessionFactory)
           
 void setSessionProcessors(List<SessionProcessor> sessionProcessors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionAspect

public SessionAspect()
Method Detail

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.