org.apache.camel.spring.xml
Class RouteBuilderFactoryBean
java.lang.Object
org.apache.camel.spring.xml.RouteBuilderFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
public class RouteBuilderFactoryBean
- extends Object
- implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
A FactoryBean
which creates a RouteBuilder by parsing an XML file. This factory bean
must be injected with a context and will then install the rules in the context when the routing rules
are created.
- Version:
- $Revision: 521369 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RouteBuilderFactoryBean
public RouteBuilderFactoryBean()
getObject
public Object getObject()
throws Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
Exception
getObjectType
public Class getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
getRoutes
public ArrayList<BuilderStatement> getRoutes()
setRoutes
public void setRoutes(ArrayList<BuilderStatement> routes)
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
getContext
public org.apache.camel.CamelContext getContext()
setContext
public void setContext(org.apache.camel.CamelContext context)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2007 Apache Software Foundation. All Rights Reserved.