org.mentawai.filter
Class SpringFilter
java.lang.Object
org.mentawai.filter.SpringFilter
- All Implemented Interfaces:
- Filter
public class SpringFilter
- extends Object
- implements Filter
Filter to substitute an regular action input for a InputSpring. Can be used as a global filter.
By default, find a WebApplicationContext configured in web.xml
- Author:
- Davi Luan Carneiro
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringFilter
public SpringFilter()
SpringFilter
public SpringFilter(org.springframework.beans.factory.BeanFactory beanFactory)
filter
public String filter(InvocationChain chain)
throws Exception
- Description copied from interface:
Filter
- Executes the filter.
- Specified by:
filter in interface Filter
- Parameters:
chain - The InvocationChain for the action this filter is being applied to.
- Returns:
- The result of the filter or the action the filter is being applied to.
- Throws:
Exception
destroy
public void destroy()
- Description copied from interface:
Filter
- Gives a chance to the filter to deallocalte any resources before it is destroyed.
This is called when the web application is stopped, in other words,
this has nothing to do with garbage collection.
- Specified by:
destroy in interface Filter
Copyright © 2011. All Rights Reserved.