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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidpostProcessBeforeDestruction(Object bean, String beanName) postProcessBeforeInitialization(Object bean, String beanName) booleanrequiresDestruction(Object bean) voidsetBeanFactory(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
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceSmartInitializingSingleton
-
postProcessBeforeInitialization
- Specified by:
postProcessBeforeInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-
postProcessBeforeDestruction
- Specified by:
postProcessBeforeDestructionin interfaceDestructionAwareBeanPostProcessor- Throws:
BeansException
-
requiresDestruction
- Specified by:
requiresDestructionin interfaceDestructionAwareBeanPostProcessor
-