org.apache.camel.blueprint
Class CamelContextFactoryBean

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
          extended by org.apache.camel.blueprint.CamelContextFactoryBean
All Implemented Interfaces:
org.apache.camel.model.RouteContainer

public class CamelContextFactoryBean
extends org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

A bean to create and initialize a BlueprintCamelContext and install routes either explicitly configured in Blueprint XML or found by searching the classpath for Java classes which extend RouteBuilder using the nested setPackages(String[]).

Version:

Field Summary
 
Fields inherited from class org.apache.camel.core.xml.AbstractCamelContextFactoryBean
LAZY_LOAD_TYPE_CONVERTERS
 
Constructor Summary
CamelContextFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  BlueprintCamelContext createContext()
           
protected  void findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders)
           
protected  void findRouteBuildersByPackageScan(String[] packages, org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders)
           
 String getAutoStartup()
           
protected
<S> S
getBeanForType(Class<S> clazz)
           
 List<?> getBeans()
           
 List<org.apache.camel.model.RouteBuilderDefinition> getBuilderRefs()
           
 org.apache.camel.core.xml.CamelJMXAgentDefinition getCamelJMXAgent()
           
 org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition getCamelPropertyPlaceholder()
           
 BlueprintCamelContext getContext(boolean create)
           
 org.apache.camel.model.ContextScanDefinition getContextScan()
           
 org.apache.camel.model.dataformat.DataFormatsDefinition getDataFormats()
           
 String getDelayer()
           
 String getDependsOn()
           
 List<CamelEndpointFactoryBean> getEndpoints()
           
 String getErrorHandlerRef()
           
 String getHandleFault()
           
 List<org.apache.camel.model.InterceptFromDefinition> getInterceptFroms()
           
 List<org.apache.camel.model.InterceptDefinition> getIntercepts()
           
 List<org.apache.camel.model.InterceptSendToEndpointDefinition> getInterceptSendToEndpoints()
           
 Boolean getLazyLoadTypeConverters()
          Deprecated. 
 String getManagementNamePattern()
           
 Class<BlueprintCamelContext> getObjectType()
           
 List<org.apache.camel.model.OnCompletionDefinition> getOnCompletions()
           
 List<org.apache.camel.model.OnExceptionDefinition> getOnExceptions()
           
 String[] getPackages()
           
 org.apache.camel.model.PackageScanDefinition getPackageScan()
           
 org.apache.camel.model.config.PropertiesDefinition getProperties()
           
 List<CamelRedeliveryPolicyFactoryBean> getRedeliveryPolicies()
           
 List<org.apache.camel.model.RouteContextRefDefinition> getRouteRefs()
           
 List<org.apache.camel.model.RouteDefinition> getRoutes()
           
 org.apache.camel.ShutdownRoute getShutdownRoute()
           
 org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
           
 String getStreamCache()
           
 List<org.apache.camel.model.ThreadPoolProfileDefinition> getThreadPoolProfiles()
           
 List<CamelThreadPoolFactoryBean> getThreadPools()
           
 String getTrace()
           
 Boolean getUseBlueprintPropertyResolver()
           
 String getUseBreadcrumb()
           
 String getUseMDCLogging()
           
protected  void initBeanPostProcessor(BlueprintCamelContext context)
           
protected  void initCustomRegistry(BlueprintCamelContext context)
           
protected  void initPropertyPlaceholder()
           
 boolean isImplicitId()
           
 boolean isUseBlueprintPropertyResolver()
           
protected  void postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder)
           
 void setAutoStartup(String autoStartup)
           
 void setBeans(List<?> beans)
           
 void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)
           
 void setBuilderRefs(List<org.apache.camel.model.RouteBuilderDefinition> builderRefs)
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 void setCamelJMXAgent(org.apache.camel.core.xml.CamelJMXAgentDefinition camelJMXAgent)
           
 void setCamelPropertyPlaceholder(org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition camelPropertyPlaceholder)
           
 void setContextScan(org.apache.camel.model.ContextScanDefinition contextScan)
           
 void setDataFormats(org.apache.camel.model.dataformat.DataFormatsDefinition dataFormats)
           
 void setDelayer(String delayer)
           
 void setDependsOn(String dependsOn)
           
 void setEndpoints(List<CamelEndpointFactoryBean> endpoints)
           
 void setErrorHandlerRef(String errorHandlerRef)
           
 void setHandleFault(String handleFault)
           
 void setImplicitId(boolean flag)
           
 void setInterceptFroms(List<org.apache.camel.model.InterceptFromDefinition> interceptFroms)
           
 void setIntercepts(List<org.apache.camel.model.InterceptDefinition> intercepts)
           
 void setInterceptSendToEndpoints(List<org.apache.camel.model.InterceptSendToEndpointDefinition> interceptSendToEndpoints)
           
 void setLazyLoadTypeConverters(Boolean lazyLoadTypeConverters)
          Deprecated. 
 void setManagementNamePattern(String managementNamePattern)
           
 void setOnCompletions(List<org.apache.camel.model.OnCompletionDefinition> onCompletions)
           
 void setOnExceptions(List<org.apache.camel.model.OnExceptionDefinition> onExceptions)
           
 void setPackages(String[] packages)
           
 void setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan)
           
 void setProperties(org.apache.camel.model.config.PropertiesDefinition properties)
           
 void setRedeliveryPolicies(List<CamelRedeliveryPolicyFactoryBean> redeliveryPolicies)
           
 void setRouteRefs(List<org.apache.camel.model.RouteContextRefDefinition> routeRefs)
           
 void setRoutes(List<org.apache.camel.model.RouteDefinition> routes)
           
 void setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)
           
 void setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
           
 void setStreamCache(String streamCache)
           
 void setThreadPoolProfiles(List<org.apache.camel.model.ThreadPoolProfileDefinition> threadPoolProfiles)
           
 void setThreadPools(List<CamelThreadPoolFactoryBean> threadPools)
           
 void setTrace(String trace)
           
 void setUseBlueprintPropertyResolver(Boolean useBlueprintPropertyResolver)
           
 void setUseBreadcrumb(String useBreadcrumb)
           
 void setUseMDCLogging(String useMDCLogging)
           
 
Methods inherited from class org.apache.camel.core.xml.AbstractCamelContextFactoryBean
destroy, findRouteBuilders, getContext, getContextClassLoaderOnStart, getObject, initCamelContext, initJMXAgent, initLazyLoadTypeConverteres, initRouteRefs, initThreadPoolProfiles, installRoutes, isSingleton
 
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelContextFactoryBean

public CamelContextFactoryBean()
Method Detail

getObjectType

public Class<BlueprintCamelContext> getObjectType()
Specified by:
getObjectType in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

getContext

public BlueprintCamelContext getContext(boolean create)
Specified by:
getContext in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setBlueprintContainer

public void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)

createContext

protected BlueprintCamelContext createContext()

initCustomRegistry

protected void initCustomRegistry(BlueprintCamelContext context)
Specified by:
initCustomRegistry in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

getBeanForType

protected <S> S getBeanForType(Class<S> clazz)
Specified by:
getBeanForType in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

initPropertyPlaceholder

protected void initPropertyPlaceholder()
                                throws Exception
Overrides:
initPropertyPlaceholder in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
Throws:
Exception

initBeanPostProcessor

protected void initBeanPostProcessor(BlueprintCamelContext context)
Specified by:
initBeanPostProcessor in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

postProcessBeforeInit

protected void postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder)
Specified by:
postProcessBeforeInit in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

findRouteBuildersByPackageScan

protected void findRouteBuildersByPackageScan(String[] packages,
                                              org.apache.camel.spi.PackageScanFilter filter,
                                              List<org.apache.camel.RoutesBuilder> builders)
                                       throws Exception
Specified by:
findRouteBuildersByPackageScan in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
Throws:
Exception

findRouteBuildersByContextScan

protected void findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter,
                                              List<org.apache.camel.RoutesBuilder> builders)
                                       throws Exception
Specified by:
findRouteBuildersByContextScan in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
Throws:
Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Overrides:
afterPropertiesSet in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
Throws:
Exception

getDependsOn

public String getDependsOn()
Specified by:
getDependsOn in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setDependsOn

public void setDependsOn(String dependsOn)

getAutoStartup

public String getAutoStartup()
Specified by:
getAutoStartup in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setAutoStartup

public void setAutoStartup(String autoStartup)

getUseMDCLogging

public String getUseMDCLogging()
Specified by:
getUseMDCLogging in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setUseMDCLogging

public void setUseMDCLogging(String useMDCLogging)

getUseBreadcrumb

public String getUseBreadcrumb()
Specified by:
getUseBreadcrumb in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setUseBreadcrumb

public void setUseBreadcrumb(String useBreadcrumb)

getManagementNamePattern

public String getManagementNamePattern()
Specified by:
getManagementNamePattern in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setManagementNamePattern

public void setManagementNamePattern(String managementNamePattern)

getLazyLoadTypeConverters

@Deprecated
public Boolean getLazyLoadTypeConverters()
Deprecated. 

Specified by:
getLazyLoadTypeConverters in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setLazyLoadTypeConverters

@Deprecated
public void setLazyLoadTypeConverters(Boolean lazyLoadTypeConverters)
Deprecated. 


getShutdownRoute

public org.apache.camel.ShutdownRoute getShutdownRoute()
Specified by:
getShutdownRoute in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setShutdownRoute

public void setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)

getShutdownRunningTask

public org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
Specified by:
getShutdownRunningTask in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setShutdownRunningTask

public void setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)

getCamelPropertyPlaceholder

public org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition getCamelPropertyPlaceholder()
Specified by:
getCamelPropertyPlaceholder in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setCamelPropertyPlaceholder

public void setCamelPropertyPlaceholder(org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition camelPropertyPlaceholder)

getRouteRefs

public List<org.apache.camel.model.RouteContextRefDefinition> getRouteRefs()
Specified by:
getRouteRefs in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setRouteRefs

public void setRouteRefs(List<org.apache.camel.model.RouteContextRefDefinition> routeRefs)

getRedeliveryPolicies

public List<CamelRedeliveryPolicyFactoryBean> getRedeliveryPolicies()
Specified by:
getRedeliveryPolicies in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setRedeliveryPolicies

public void setRedeliveryPolicies(List<CamelRedeliveryPolicyFactoryBean> redeliveryPolicies)

getThreadPoolProfiles

public List<org.apache.camel.model.ThreadPoolProfileDefinition> getThreadPoolProfiles()
Specified by:
getThreadPoolProfiles in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setThreadPoolProfiles

public void setThreadPoolProfiles(List<org.apache.camel.model.ThreadPoolProfileDefinition> threadPoolProfiles)

getThreadPools

public List<CamelThreadPoolFactoryBean> getThreadPools()

setThreadPools

public void setThreadPools(List<CamelThreadPoolFactoryBean> threadPools)

getTrace

public String getTrace()
Specified by:
getTrace in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setTrace

public void setTrace(String trace)

getStreamCache

public String getStreamCache()
Specified by:
getStreamCache in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setStreamCache

public void setStreamCache(String streamCache)

getDelayer

public String getDelayer()
Specified by:
getDelayer in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setDelayer

public void setDelayer(String delayer)

getHandleFault

public String getHandleFault()
Specified by:
getHandleFault in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setHandleFault

public void setHandleFault(String handleFault)

getErrorHandlerRef

public String getErrorHandlerRef()
Specified by:
getErrorHandlerRef in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setErrorHandlerRef

public void setErrorHandlerRef(String errorHandlerRef)

getProperties

public org.apache.camel.model.config.PropertiesDefinition getProperties()
Specified by:
getProperties in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setProperties

public void setProperties(org.apache.camel.model.config.PropertiesDefinition properties)

getPackages

public String[] getPackages()
Specified by:
getPackages in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setPackages

public void setPackages(String[] packages)

getPackageScan

public org.apache.camel.model.PackageScanDefinition getPackageScan()
Specified by:
getPackageScan in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setPackageScan

public void setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan)
Specified by:
setPackageScan in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

getContextScan

public org.apache.camel.model.ContextScanDefinition getContextScan()
Specified by:
getContextScan in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setContextScan

public void setContextScan(org.apache.camel.model.ContextScanDefinition contextScan)
Specified by:
setContextScan in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

getCamelJMXAgent

public org.apache.camel.core.xml.CamelJMXAgentDefinition getCamelJMXAgent()
Specified by:
getCamelJMXAgent in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setCamelJMXAgent

public void setCamelJMXAgent(org.apache.camel.core.xml.CamelJMXAgentDefinition camelJMXAgent)

getBeans

public List<?> getBeans()

setBeans

public void setBeans(List<?> beans)

getBuilderRefs

public List<org.apache.camel.model.RouteBuilderDefinition> getBuilderRefs()
Specified by:
getBuilderRefs in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setBuilderRefs

public void setBuilderRefs(List<org.apache.camel.model.RouteBuilderDefinition> builderRefs)

getEndpoints

public List<CamelEndpointFactoryBean> getEndpoints()
Specified by:
getEndpoints in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setEndpoints

public void setEndpoints(List<CamelEndpointFactoryBean> endpoints)

getDataFormats

public org.apache.camel.model.dataformat.DataFormatsDefinition getDataFormats()
Specified by:
getDataFormats in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setDataFormats

public void setDataFormats(org.apache.camel.model.dataformat.DataFormatsDefinition dataFormats)

getOnExceptions

public List<org.apache.camel.model.OnExceptionDefinition> getOnExceptions()
Specified by:
getOnExceptions in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setOnExceptions

public void setOnExceptions(List<org.apache.camel.model.OnExceptionDefinition> onExceptions)

getOnCompletions

public List<org.apache.camel.model.OnCompletionDefinition> getOnCompletions()
Specified by:
getOnCompletions in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setOnCompletions

public void setOnCompletions(List<org.apache.camel.model.OnCompletionDefinition> onCompletions)

getIntercepts

public List<org.apache.camel.model.InterceptDefinition> getIntercepts()
Specified by:
getIntercepts in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setIntercepts

public void setIntercepts(List<org.apache.camel.model.InterceptDefinition> intercepts)

getInterceptFroms

public List<org.apache.camel.model.InterceptFromDefinition> getInterceptFroms()
Specified by:
getInterceptFroms in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setInterceptFroms

public void setInterceptFroms(List<org.apache.camel.model.InterceptFromDefinition> interceptFroms)

getInterceptSendToEndpoints

public List<org.apache.camel.model.InterceptSendToEndpointDefinition> getInterceptSendToEndpoints()
Specified by:
getInterceptSendToEndpoints in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setInterceptSendToEndpoints

public void setInterceptSendToEndpoints(List<org.apache.camel.model.InterceptSendToEndpointDefinition> interceptSendToEndpoints)

getRoutes

public List<org.apache.camel.model.RouteDefinition> getRoutes()
Specified by:
getRoutes in interface org.apache.camel.model.RouteContainer
Specified by:
getRoutes in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>

setRoutes

public void setRoutes(List<org.apache.camel.model.RouteDefinition> routes)

isImplicitId

public boolean isImplicitId()

setImplicitId

public void setImplicitId(boolean flag)

getUseBlueprintPropertyResolver

public Boolean getUseBlueprintPropertyResolver()

setUseBlueprintPropertyResolver

public void setUseBlueprintPropertyResolver(Boolean useBlueprintPropertyResolver)

isUseBlueprintPropertyResolver

public boolean isUseBlueprintPropertyResolver()


Apache CAMEL