org.apache.camel.core.xml
Class AbstractCamelContextFactoryBean<T extends org.apache.camel.model.ModelCamelContext>
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.core.xml.AbstractCamelContextFactoryBean<T>
- All Implemented Interfaces:
- org.apache.camel.model.RouteContainer
public abstract class AbstractCamelContextFactoryBean<T extends org.apache.camel.model.ModelCamelContext>
- extends org.apache.camel.model.IdentifiedType
- implements org.apache.camel.model.RouteContainer
A factory to create and initialize a
CamelContext and install routes either explicitly configured
or found by searching the classpath for Java classes which extend
RouteBuilder.
- Version:
|
Field Summary |
static java.lang.String |
LAZY_LOAD_TYPE_CONVERTERS
JVM system property to control lazy loading of type converters. |
| 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 |
| Methods inherited from interface org.apache.camel.model.RouteContainer |
setRoutes |
LAZY_LOAD_TYPE_CONVERTERS
public static final java.lang.String LAZY_LOAD_TYPE_CONVERTERS
- JVM system property to control lazy loading of type converters.
- See Also:
- Constant Field Values
AbstractCamelContextFactoryBean
public AbstractCamelContextFactoryBean()
getObject
public java.lang.Object getObject()
throws java.lang.Exception
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class getObjectType()
isSingleton
public boolean isSingleton()
getContextClassLoaderOnStart
public java.lang.ClassLoader getContextClassLoaderOnStart()
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Throws:
java.lang.Exception
initCustomRegistry
protected abstract void initCustomRegistry(T context)
initLazyLoadTypeConverteres
protected void initLazyLoadTypeConverteres()
initJMXAgent
protected void initJMXAgent()
throws java.lang.Exception
- Throws:
java.lang.Exception
initPropertyPlaceholder
protected void initPropertyPlaceholder()
throws java.lang.Exception
- Throws:
java.lang.Exception
initRouteRefs
protected void initRouteRefs()
throws java.lang.Exception
- Throws:
java.lang.Exception
getBeanForType
protected abstract <S> S getBeanForType(java.lang.Class<S> clazz)
destroy
public void destroy()
throws java.lang.Exception
- Throws:
java.lang.Exception
getContext
public T getContext()
getContext
public abstract T getContext(boolean create)
getRoutes
public abstract java.util.List<org.apache.camel.model.RouteDefinition> getRoutes()
- Specified by:
getRoutes in interface org.apache.camel.model.RouteContainer
getEndpoints
public abstract java.util.List<? extends AbstractCamelEndpointFactoryBean> getEndpoints()
getRedeliveryPolicies
public abstract java.util.List<? extends AbstractCamelRedeliveryPolicyFactoryBean> getRedeliveryPolicies()
getIntercepts
public abstract java.util.List<org.apache.camel.model.InterceptDefinition> getIntercepts()
getInterceptFroms
public abstract java.util.List<org.apache.camel.model.InterceptFromDefinition> getInterceptFroms()
getInterceptSendToEndpoints
public abstract java.util.List<org.apache.camel.model.InterceptSendToEndpointDefinition> getInterceptSendToEndpoints()
getProperties
public abstract org.apache.camel.model.config.PropertiesDefinition getProperties()
getPackages
public abstract java.lang.String[] getPackages()
getPackageScan
public abstract org.apache.camel.model.PackageScanDefinition getPackageScan()
setPackageScan
public abstract void setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan)
getContextScan
public abstract org.apache.camel.model.ContextScanDefinition getContextScan()
setContextScan
public abstract void setContextScan(org.apache.camel.model.ContextScanDefinition contextScan)
getCamelPropertyPlaceholder
public abstract CamelPropertyPlaceholderDefinition getCamelPropertyPlaceholder()
getTrace
public abstract java.lang.String getTrace()
getStreamCache
public abstract java.lang.String getStreamCache()
getDelayer
public abstract java.lang.String getDelayer()
getHandleFault
public abstract java.lang.String getHandleFault()
getAutoStartup
public abstract java.lang.String getAutoStartup()
getUseMDCLogging
public abstract java.lang.String getUseMDCLogging()
getUseBreadcrumb
public abstract java.lang.String getUseBreadcrumb()
getLazyLoadTypeConverters
public abstract java.lang.Boolean getLazyLoadTypeConverters()
getCamelJMXAgent
public abstract CamelJMXAgentDefinition getCamelJMXAgent()
getBuilderRefs
public abstract java.util.List<org.apache.camel.model.RouteBuilderDefinition> getBuilderRefs()
getRouteRefs
public abstract java.util.List<org.apache.camel.model.RouteContextRefDefinition> getRouteRefs()
getErrorHandlerRef
public abstract java.lang.String getErrorHandlerRef()
getDataFormats
public abstract org.apache.camel.model.dataformat.DataFormatsDefinition getDataFormats()
getOnExceptions
public abstract java.util.List<org.apache.camel.model.OnExceptionDefinition> getOnExceptions()
getOnCompletions
public abstract java.util.List<org.apache.camel.model.OnCompletionDefinition> getOnCompletions()
getShutdownRoute
public abstract org.apache.camel.ShutdownRoute getShutdownRoute()
getShutdownRunningTask
public abstract org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
getThreadPoolProfiles
public abstract java.util.List<org.apache.camel.model.ThreadPoolProfileDefinition> getThreadPoolProfiles()
getDependsOn
public abstract java.lang.String getDependsOn()
initCamelContext
protected void initCamelContext(T ctx)
throws java.lang.Exception
- Initializes the context
- Parameters:
ctx - the context
- Throws:
java.lang.Exception - is thrown if error occurred
initThreadPoolProfiles
protected void initThreadPoolProfiles(T context)
throws java.lang.Exception
- Throws:
java.lang.Exception
initBeanPostProcessor
protected abstract void initBeanPostProcessor(T context)
installRoutes
protected void installRoutes()
throws java.lang.Exception
- Strategy to install all available routes into the context
- Throws:
java.lang.Exception
postProcessBeforeInit
protected abstract void postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder)
findRouteBuilders
protected void findRouteBuilders()
throws java.lang.Exception
- Strategy method to try find
RouteBuilder instances on the classpath
- Throws:
java.lang.Exception
findRouteBuildersByPackageScan
protected abstract void findRouteBuildersByPackageScan(java.lang.String[] packages,
org.apache.camel.spi.PackageScanFilter filter,
java.util.List<org.apache.camel.RoutesBuilder> builders)
throws java.lang.Exception
- Throws:
java.lang.Exception
findRouteBuildersByContextScan
protected abstract void findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter,
java.util.List<org.apache.camel.RoutesBuilder> builders)
throws java.lang.Exception
- Throws:
java.lang.Exception
Apache CAMEL