public class SpringBeanParameterResolverFactory extends ParameterResolverFactory implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
Constructor and Description |
---|
SpringBeanParameterResolverFactory() |
Modifier and Type | Method and Description |
---|---|
protected ParameterResolver |
createInstance(Annotation[] memberAnnotations,
Class<?> parameterType,
Annotation[] parameterAnnotations)
If available, creates a ParameterResolver instance that can provide a parameter of type
parameterType for a given message. |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
boolean |
supportsPayloadResolution()
This implementation always returns
false , to indicate that payload resolution is not supported for
this factory |
createPayloadResolver, findParameterResolver, registerChangeListener, registerFactory, unregisterFactory
protected ParameterResolver createInstance(Annotation[] memberAnnotations, Class<?> parameterType, Annotation[] parameterAnnotations)
ParameterResolverFactory
parameterType
for a given message.
If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null
.createInstance
in class ParameterResolverFactory
memberAnnotations
- annotations placed on the member (e.g. method)parameterType
- the parameter type to find a resolver forparameterAnnotations
- annotations places on the parameternull
if none is foundpublic boolean supportsPayloadResolution()
false
, to indicate that payload resolution is not supported for
this factorysupportsPayloadResolution
in class ParameterResolverFactory
false
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
org.springframework.beans.BeansException
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
Copyright © 2010-2013. All Rights Reserved.