Class SpringContextRouteLoader

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class SpringContextRouteLoader
    extends java.lang.Object
    implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
    Injects a specified route context into a specified Camel context
    Author:
    Ray Gauss II
    • Constructor Detail

      • SpringContextRouteLoader

        public SpringContextRouteLoader()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • setCamelContextId

        public void setCamelContextId​(java.lang.String camelContextId)
      • setRouteContextId

        public void setRouteContextId​(java.lang.String routeContextId)
      • addRoutesToCamelContext

        public void addRoutesToCamelContext()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception