Class DynamicRequestMappingBeanPostProcessor
java.lang.Object
org.springframework.integration.http.inbound.DynamicRequestMappingBeanPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.config.BeanPostProcessor,org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor,org.springframework.beans.factory.SmartInitializingSingleton
public class DynamicRequestMappingBeanPostProcessor
extends Object
implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor, org.springframework.beans.factory.SmartInitializingSingleton
A
DestructionAwareBeanPostProcessor to register request mapping
created at runtime (e.g. via
IntegrationFlowContext)
by HttpRequestHandlingEndpointSupport instances
into the IntegrationRequestMappingHandlerMapping.
These mappings are also removed when respective HttpRequestHandlingEndpointSupport
bean is destroyed.- Since:
- 6.2.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidpostProcessBeforeDestruction(Object bean, String beanName) postProcessBeforeInitialization(Object bean, String beanName) booleanrequiresDestruction(Object bean) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization
-
Constructor Details
-
DynamicRequestMappingBeanPostProcessor
public DynamicRequestMappingBeanPostProcessor()
-
-
Method Details
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceorg.springframework.beans.factory.SmartInitializingSingleton
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
postProcessBeforeDestruction
public void postProcessBeforeDestruction(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeDestructionin interfaceorg.springframework.beans.factory.config.DestructionAwareBeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
requiresDestruction
- Specified by:
requiresDestructionin interfaceorg.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
-