Package org.alfresco.messaging.camel
Class SpringContextRouteLoader
- java.lang.Object
-
- org.alfresco.messaging.camel.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.InitializingBeanInjects a specified route context into a specified Camel context- Author:
- Ray Gauss II
-
-
Constructor Summary
Constructors Constructor Description SpringContextRouteLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRoutesToCamelContext()voidafterPropertiesSet()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetCamelContextId(java.lang.String camelContextId)voidsetRouteContextId(java.lang.String routeContextId)
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
-