org.parancoe.web
Class ParancoeOpenSessionInViewInterceptor

java.lang.Object
  extended by org.parancoe.web.ParancoeOpenSessionInViewInterceptor
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor

public class ParancoeOpenSessionInViewInterceptor
extends java.lang.Object
implements org.springframework.web.servlet.HandlerInterceptor

I don't know why the transaction annotations aren't recognized. This class is a workaround until I will find a solution.

Author:
Jacopo Murador

Constructor Summary
ParancoeOpenSessionInViewInterceptor()
           
 
Method Summary
 void afterCompletion(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.Object handler, java.lang.Exception ex)
           
 void postHandle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.Object handler, org.springframework.web.servlet.ModelAndView model)
           
 boolean preHandle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.Object handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParancoeOpenSessionInViewInterceptor

public ParancoeOpenSessionInViewInterceptor()
Method Detail

preHandle

public boolean preHandle(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse res,
                         java.lang.Object handler)
                  throws java.lang.Exception
Specified by:
preHandle in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
java.lang.Exception

postHandle

public void postHandle(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res,
                       java.lang.Object handler,
                       org.springframework.web.servlet.ModelAndView model)
                throws java.lang.Exception
Specified by:
postHandle in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
java.lang.Exception

afterCompletion

public void afterCompletion(javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse res,
                            java.lang.Object handler,
                            java.lang.Exception ex)
                     throws java.lang.Exception
Specified by:
afterCompletion in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
java.lang.Exception


Copyright © 2008 JUG Padova Parancoe Team. All Rights Reserved.