org.codehaus.groovy.grails.web.plugins.support
Class HandlerMappingInterceptorWiringBeanFactoryPostProcessor

java.lang.Object
  extended by org.codehaus.groovy.grails.web.plugins.support.HandlerMappingInterceptorWiringBeanFactoryPostProcessor
All Implemented Interfaces:
BeanFactoryPostProcessor

public class HandlerMappingInterceptorWiringBeanFactoryPostProcessor
extends Object
implements BeanFactoryPostProcessor

This class automagically wires all HandlerInterceptors and WebRequestInterceptors (web interceptors) in a Spring BeanFactory to all AbstractHandlerMappings.

As to be expected such an implementation cannot handle each and every situation. The goal however is to move this wiring logic out of Grails plugin implementations. To make this abstraction useful for everyone writing plugins we make these assumptions:

While these limitations are not expected to block plugin developers they are important to be aware of when registering HandlerInterceptors, WebRequestInterceptors and AbstractHandlerMappings. If you're experiencing difficulties by these restrictions please do send a mail to the developer mailing list.

As a side-note, this is a pessimistic implementation that could be replaced by an optimistic one using object-oriented design to select and refuse web interceptors.

Since:
2 jan 2007
Author:
Steven Devijver

Constructor Summary
HandlerMappingInterceptorWiringBeanFactoryPostProcessor()
           
 
Method Summary
 void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerMappingInterceptorWiringBeanFactoryPostProcessor

public HandlerMappingInterceptorWiringBeanFactoryPostProcessor()
Method Detail

postProcessBeanFactory

public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
                            throws BeansException
Specified by:
postProcessBeanFactory in interface BeanFactoryPostProcessor
Throws:
BeansException


Copyright (c) 2005-2006 The Grails project