Class DynamicRequestMappingBeanPostProcessor
java.lang.Object
org.springframework.integration.http.inbound.DynamicRequestMappingBeanPostProcessor
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanPostProcessor
,DestructionAwareBeanPostProcessor
,SmartInitializingSingleton
public class DynamicRequestMappingBeanPostProcessor
extends Object
implements BeanFactoryAware, DestructionAwareBeanPostProcessor, 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
- Author:
- Artem Bilan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
postProcessBeforeDestruction
(Object bean, String beanName) postProcessBeforeInitialization
(Object bean, String beanName) boolean
requiresDestruction
(Object bean) void
setBeanFactory
(BeanFactory beanFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization
-
Constructor Details
-
DynamicRequestMappingBeanPostProcessor
public DynamicRequestMappingBeanPostProcessor()
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiated
in interfaceSmartInitializingSingleton
-
postProcessBeforeInitialization
- Specified by:
postProcessBeforeInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
postProcessBeforeDestruction
- Specified by:
postProcessBeforeDestruction
in interfaceDestructionAwareBeanPostProcessor
- Throws:
BeansException
-
requiresDestruction
- Specified by:
requiresDestruction
in interfaceDestructionAwareBeanPostProcessor
-