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:
Fields inherited from class org.apache.camel.core.xml.AbstractCamelContextFactoryBean |
LAZY_LOAD_TYPE_CONVERTERS |
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 |
CamelContextFactoryBean
public CamelContextFactoryBean()
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