Package org.apache.struts2.factory
Class DefaultInterceptorFactory
java.lang.Object
org.apache.struts2.factory.DefaultInterceptorFactory
- All Implemented Interfaces:
- InterceptorFactory
Default implementation
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuildInterceptor(InterceptorConfig interceptorConfig, Map<String, String> interceptorRefParams) Builds an Interceptor from the InterceptorConfig and the Map of parameters from the interceptor reference.voidsetObjectFactory(ObjectFactory objectFactory) voidsetReflectionProvider(ReflectionProvider reflectionProvider) 
- 
Constructor Details- 
DefaultInterceptorFactorypublic DefaultInterceptorFactory()
 
- 
- 
Method Details- 
setObjectFactory
- 
setReflectionProvider
- 
buildInterceptorpublic Interceptor buildInterceptor(InterceptorConfig interceptorConfig, Map<String, String> interceptorRefParams) throws ConfigurationExceptionDescription copied from interface:InterceptorFactoryBuilds an Interceptor from the InterceptorConfig and the Map of parameters from the interceptor reference. Implementations of this method should ensure that the Interceptor is parameterized with both the parameters from the Interceptor config and the interceptor ref Map (the interceptor ref params take precedence), and that the Interceptor.init() method is called on the Interceptor instance before it is returned.- Specified by:
- buildInterceptorin interface- InterceptorFactory
- Parameters:
- interceptorConfig- the InterceptorConfig from the configuration
- interceptorRefParams- a Map of params provided in the Interceptor reference in the Action mapping or InterceptorStack definition
- Returns:
- interceptor
- Throws:
- ConfigurationException- in case of any configuration errors
 
 
-