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 Details

    • DynamicRequestMappingBeanPostProcessor

      public DynamicRequestMappingBeanPostProcessor()
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • afterSingletonsInstantiated

      public void afterSingletonsInstantiated()
      Specified by:
      afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingleton
    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeforeInitialization in interface org.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:
      postProcessBeforeDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • requiresDestruction

      public boolean requiresDestruction(Object bean)
      Specified by:
      requiresDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor