org.codehaus.groovy.grails.plugins.springsecurity
Class GrailsWebApplicationObjectSupport
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware
public abstract class GrailsWebApplicationObjectSupport
- extends org.springframework.web.context.support.WebApplicationObjectSupport
Grails Web Application Object Support.
- Author:
- T.Yamamoto, Burt Beckwith
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrailsWebApplicationObjectSupport
public GrailsWebApplicationObjectSupport()
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
- Dependency injection for Hibernate session factory.
- Parameters:
sessionFactory
- the factory
setUpSession
protected GrailsWebApplicationObjectSupport.SessionContainer setUpSession()
- Set up hibernate session.
- Returns:
- the session container, which holds the session and a boolean indicating if the session was pre-existing
releaseSession
protected void releaseSession(GrailsWebApplicationObjectSupport.SessionContainer session)
- Release Session.