org.springframework.extensions.surf.mvc
Class AbstractWebFrameworkInterceptor

java.lang.Object
  extended by org.springframework.web.servlet.handler.HandlerInterceptorAdapter
      extended by org.springframework.extensions.surf.mvc.AbstractWebFrameworkInterceptor
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.HandlerInterceptor
Direct Known Subclasses:
PreviewContextInterceptor, RequestContextInterceptor, ThemeInterceptor

public class AbstractWebFrameworkInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
implements org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

Abstract Spring MVC HandlerInterceptorAdaptor that produces interceptors for Alfresco Surf. Developers who wish to implement custom Spring interceptors for use with Alfresco Surf will benefit by extending from this class. This class provides member functions for accessing the application context as well as important Surf services.

Author:
muzquiano

Constructor Summary
AbstractWebFrameworkInterceptor()
           
 
Method Summary
 RenderService getRenderService()
          Gets the render service.
 WebFrameworkServiceRegistry getServiceRegistry()
          Gets the service registry.
 WebFrameworkConfigElement getWebFrameworkConfiguration()
          Gets the web framework configuration.
 WebFrameworkManager getWebFrameworkManager()
          Gets the web framework manager.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setServiceRegistry(WebFrameworkServiceRegistry webFrameworkServiceRegistry)
          Sets the service registry.
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
afterCompletion, postHandle, preHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWebFrameworkInterceptor

public AbstractWebFrameworkInterceptor()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware

setServiceRegistry

public void setServiceRegistry(WebFrameworkServiceRegistry webFrameworkServiceRegistry)
Sets the service registry.

Parameters:
webFrameworkServiceRegistry - the new service registry

getServiceRegistry

public WebFrameworkServiceRegistry getServiceRegistry()
Gets the service registry.

Returns:
the service registry

getWebFrameworkConfiguration

public WebFrameworkConfigElement getWebFrameworkConfiguration()
Gets the web framework configuration.

Returns:
the web framework configuration

getWebFrameworkManager

public WebFrameworkManager getWebFrameworkManager()
Gets the web framework manager.

Returns:
the web framework manager

getRenderService

public RenderService getRenderService()
Gets the render service.

Returns:
the render service


Copyright © 2009 SpringSource, Inc. All Rights Reserved.