org.apache.camel.blueprint
Class CamelContextFactoryBean
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
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:
- $Revision$
| Methods inherited from class org.apache.camel.core.xml.AbstractCamelContextFactoryBean |
destroy, findRouteBuilders, getContext, getContextClassLoaderOnStart, getObject, initCamelContext, 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 |
CamelContextFactoryBean
public CamelContextFactoryBean()
getObjectType
public java.lang.Class getObjectType()
- Overrides:
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(java.lang.Class<S> clazz)
- Specified by:
getBeanForType in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
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(java.lang.String[] packages,
org.apache.camel.spi.PackageScanFilter filter,
java.util.List<org.apache.camel.RoutesBuilder> builders)
throws java.lang.Exception
- Specified by:
findRouteBuildersByPackageScan in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
- Throws:
java.lang.Exception
findRouteBuildersByContextScan
protected void findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter,
java.util.List<org.apache.camel.RoutesBuilder> builders)
throws java.lang.Exception
- Specified by:
findRouteBuildersByContextScan in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
- Throws:
java.lang.Exception
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Overrides:
afterPropertiesSet in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
- Throws:
java.lang.Exception
getDependsOn
public java.lang.String getDependsOn()
- Specified by:
getDependsOn in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setDependsOn
public void setDependsOn(java.lang.String dependsOn)
getAutoStartup
public java.lang.String getAutoStartup()
- Specified by:
getAutoStartup in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setAutoStartup
public void setAutoStartup(java.lang.String autoStartup)
getLazyLoadTypeConverters
public java.lang.Boolean getLazyLoadTypeConverters()
- Specified by:
getLazyLoadTypeConverters in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setLazyLoadTypeConverters
public void setLazyLoadTypeConverters(java.lang.Boolean lazyLoadTypeConverters)
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 java.util.List<org.apache.camel.model.RouteContextRefDefinition> getRouteRefs()
- Specified by:
getRouteRefs in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setRouteRefs
public void setRouteRefs(java.util.List<org.apache.camel.model.RouteContextRefDefinition> routeRefs)
getThreadPoolProfiles
public java.util.List<org.apache.camel.model.ThreadPoolProfileDefinition> getThreadPoolProfiles()
- Specified by:
getThreadPoolProfiles in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setThreadPoolProfiles
public void setThreadPoolProfiles(java.util.List<org.apache.camel.model.ThreadPoolProfileDefinition> threadPoolProfiles)
getThreadPools
public java.util.List<CamelThreadPoolFactoryBean> getThreadPools()
setThreadPools
public void setThreadPools(java.util.List<CamelThreadPoolFactoryBean> threadPools)
getTrace
public java.lang.String getTrace()
- Specified by:
getTrace in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setTrace
public void setTrace(java.lang.String trace)
getStreamCache
public java.lang.String getStreamCache()
- Specified by:
getStreamCache in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setStreamCache
public void setStreamCache(java.lang.String streamCache)
getDelayer
public java.lang.String getDelayer()
- Specified by:
getDelayer in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setDelayer
public void setDelayer(java.lang.String delayer)
getHandleFault
public java.lang.String getHandleFault()
- Specified by:
getHandleFault in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setHandleFault
public void setHandleFault(java.lang.String handleFault)
getErrorHandlerRef
public java.lang.String getErrorHandlerRef()
- Specified by:
getErrorHandlerRef in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setErrorHandlerRef
public void setErrorHandlerRef(java.lang.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 java.lang.String[] getPackages()
- Specified by:
getPackages in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setPackages
public void setPackages(java.lang.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 java.util.List getBeans()
setBeans
public void setBeans(java.util.List beans)
getBuilderRefs
public java.util.List<org.apache.camel.model.RouteBuilderDefinition> getBuilderRefs()
- Specified by:
getBuilderRefs in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setBuilderRefs
public void setBuilderRefs(java.util.List<org.apache.camel.model.RouteBuilderDefinition> builderRefs)
getEndpoints
public java.util.List<CamelEndpointFactoryBean> getEndpoints()
- Specified by:
getEndpoints in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setEndpoints
public void setEndpoints(java.util.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 java.util.List<org.apache.camel.model.OnExceptionDefinition> getOnExceptions()
- Specified by:
getOnExceptions in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setOnExceptions
public void setOnExceptions(java.util.List<org.apache.camel.model.OnExceptionDefinition> onExceptions)
getOnCompletions
public java.util.List<org.apache.camel.model.OnCompletionDefinition> getOnCompletions()
- Specified by:
getOnCompletions in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setOnCompletions
public void setOnCompletions(java.util.List<org.apache.camel.model.OnCompletionDefinition> onCompletions)
getIntercepts
public java.util.List<org.apache.camel.model.InterceptDefinition> getIntercepts()
- Specified by:
getIntercepts in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setIntercepts
public void setIntercepts(java.util.List<org.apache.camel.model.InterceptDefinition> intercepts)
getInterceptFroms
public java.util.List<org.apache.camel.model.InterceptFromDefinition> getInterceptFroms()
- Specified by:
getInterceptFroms in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setInterceptFroms
public void setInterceptFroms(java.util.List<org.apache.camel.model.InterceptFromDefinition> interceptFroms)
getInterceptSendToEndpoints
public java.util.List<org.apache.camel.model.InterceptSendToEndpointDefinition> getInterceptSendToEndpoints()
- Specified by:
getInterceptSendToEndpoints in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<BlueprintCamelContext>
setInterceptSendToEndpoints
public void setInterceptSendToEndpoints(java.util.List<org.apache.camel.model.InterceptSendToEndpointDefinition> interceptSendToEndpoints)
getRoutes
public java.util.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(java.util.List<org.apache.camel.model.RouteDefinition> routes)
isImplicitId
public boolean isImplicitId()
setImplicitId
public void setImplicitId(boolean flag)
Apache CAMEL