Interface XmlCamelContextConfigurer


  • public interface XmlCamelContextConfigurer
    Allows doing custom configuration when a new XML based SpringCamelContext has been created. For example, we use this to enable camel-spring-boot to configure Camel created from XML files with the existing Spring Boot auto-configuration.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void configure​(org.springframework.context.ApplicationContext applicationContext, org.apache.camel.spring.SpringCamelContext camelContext)
      Configures XML based CamelContext with the given configuration.
    • Method Detail

      • configure

        void configure​(org.springframework.context.ApplicationContext applicationContext,
                       org.apache.camel.spring.SpringCamelContext camelContext)
                throws Exception
        Configures XML based CamelContext with the given configuration.
        Parameters:
        applicationContext - the Spring context
        camelContext - the XML based CamelContext
        Throws:
        Exception - is thrown if error during configuration