org.springframework.datastore.web.support
Class OpenSessionInViewInterceptor

java.lang.Object
  extended by org.springframework.datastore.web.support.OpenSessionInViewInterceptor
All Implemented Interfaces:
org.springframework.web.context.request.WebRequestInterceptor

public class OpenSessionInViewInterceptor
extends Object
implements org.springframework.web.context.request.WebRequestInterceptor

A WebRequestInterceptor instance that handles opening a Datastore session within the scope of a request


Constructor Summary
OpenSessionInViewInterceptor()
           
 
Method Summary
 void afterCompletion(org.springframework.web.context.request.WebRequest webRequest, Exception e)
           
 Datastore getDatastore()
           
 void postHandle(org.springframework.web.context.request.WebRequest webRequest, org.springframework.ui.ModelMap modelMap)
           
 void preHandle(org.springframework.web.context.request.WebRequest webRequest)
           
 void setDatastore(Datastore datastore)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSessionInViewInterceptor

public OpenSessionInViewInterceptor()
Method Detail

setDatastore

public void setDatastore(Datastore datastore)

getDatastore

public Datastore getDatastore()

preHandle

public void preHandle(org.springframework.web.context.request.WebRequest webRequest)
               throws Exception
Specified by:
preHandle in interface org.springframework.web.context.request.WebRequestInterceptor
Throws:
Exception

postHandle

public void postHandle(org.springframework.web.context.request.WebRequest webRequest,
                       org.springframework.ui.ModelMap modelMap)
                throws Exception
Specified by:
postHandle in interface org.springframework.web.context.request.WebRequestInterceptor
Throws:
Exception

afterCompletion

public void afterCompletion(org.springframework.web.context.request.WebRequest webRequest,
                            Exception e)
                     throws Exception
Specified by:
afterCompletion in interface org.springframework.web.context.request.WebRequestInterceptor
Throws:
Exception