|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.IdentifiedType
org.apache.camel.core.xml.AbstractCamelContextFactoryBean<T>
public abstract class AbstractCamelContextFactoryBean<T extends org.apache.camel.model.ModelCamelContext>
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
.
Field Summary | |
---|---|
static String |
LAZY_LOAD_TYPE_CONVERTERS
JVM system property to control lazy loading of type converters. |
Constructor Summary | |
---|---|
AbstractCamelContextFactoryBean()
|
Method Summary | ||
---|---|---|
void |
afterPropertiesSet()
|
|
void |
destroy()
|
|
protected void |
findRouteBuilders()
Strategy method to try find RouteBuilder instances on the classpath |
|
protected abstract void |
findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter,
List<org.apache.camel.RoutesBuilder> builders)
|
|
protected abstract void |
findRouteBuildersByPackageScan(String[] packages,
org.apache.camel.spi.PackageScanFilter filter,
List<org.apache.camel.RoutesBuilder> builders)
|
|
abstract String |
getAutoStartup()
|
|
protected abstract
|
getBeanForType(Class<S> clazz)
|
|
abstract List<org.apache.camel.model.RouteBuilderDefinition> |
getBuilderRefs()
|
|
abstract CamelJMXAgentDefinition |
getCamelJMXAgent()
|
|
abstract CamelPropertyPlaceholderDefinition |
getCamelPropertyPlaceholder()
|
|
T |
getContext()
|
|
abstract T |
getContext(boolean create)
|
|
ClassLoader |
getContextClassLoaderOnStart()
|
|
abstract org.apache.camel.model.ContextScanDefinition |
getContextScan()
|
|
abstract org.apache.camel.model.dataformat.DataFormatsDefinition |
getDataFormats()
|
|
abstract String |
getDelayer()
|
|
abstract String |
getDependsOn()
|
|
abstract List<? extends AbstractCamelEndpointFactoryBean> |
getEndpoints()
|
|
abstract String |
getErrorHandlerRef()
|
|
abstract String |
getHandleFault()
|
|
abstract List<org.apache.camel.model.InterceptFromDefinition> |
getInterceptFroms()
|
|
abstract List<org.apache.camel.model.InterceptDefinition> |
getIntercepts()
|
|
abstract List<org.apache.camel.model.InterceptSendToEndpointDefinition> |
getInterceptSendToEndpoints()
|
|
abstract Boolean |
getLazyLoadTypeConverters()
Deprecated. this option is no longer supported, will be removed in a future Camel release. |
|
abstract String |
getManagementNamePattern()
|
|
T |
getObject()
|
|
abstract Class<T> |
getObjectType()
|
|
abstract List<org.apache.camel.model.OnCompletionDefinition> |
getOnCompletions()
|
|
abstract List<org.apache.camel.model.OnExceptionDefinition> |
getOnExceptions()
|
|
abstract String[] |
getPackages()
|
|
abstract org.apache.camel.model.PackageScanDefinition |
getPackageScan()
|
|
abstract org.apache.camel.model.config.PropertiesDefinition |
getProperties()
|
|
abstract List<? extends AbstractCamelRedeliveryPolicyFactoryBean> |
getRedeliveryPolicies()
|
|
abstract List<org.apache.camel.model.RouteContextRefDefinition> |
getRouteRefs()
|
|
abstract List<org.apache.camel.model.RouteDefinition> |
getRoutes()
|
|
abstract org.apache.camel.ShutdownRoute |
getShutdownRoute()
|
|
abstract org.apache.camel.ShutdownRunningTask |
getShutdownRunningTask()
|
|
abstract String |
getStreamCache()
|
|
abstract List<org.apache.camel.model.ThreadPoolProfileDefinition> |
getThreadPoolProfiles()
|
|
abstract String |
getTrace()
|
|
abstract String |
getUseBreadcrumb()
|
|
abstract String |
getUseMDCLogging()
|
|
protected abstract void |
initBeanPostProcessor(T context)
|
|
protected void |
initCamelContext(T ctx)
Initializes the context |
|
protected abstract void |
initCustomRegistry(T context)
|
|
protected void |
initJMXAgent()
|
|
protected void |
initLazyLoadTypeConverteres()
|
|
protected void |
initPropertyPlaceholder()
|
|
protected void |
initRouteRefs()
|
|
protected void |
initThreadPoolProfiles(T context)
|
|
protected void |
installRoutes()
Strategy to install all available routes into the context |
|
boolean |
isSingleton()
|
|
protected abstract void |
postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder)
|
|
abstract void |
setContextScan(org.apache.camel.model.ContextScanDefinition contextScan)
|
|
abstract void |
setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan)
|
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 |
Field Detail |
---|
public static final String LAZY_LOAD_TYPE_CONVERTERS
Constructor Detail |
---|
public AbstractCamelContextFactoryBean()
Method Detail |
---|
public T getObject() throws Exception
Exception
public abstract Class<T> getObjectType()
public boolean isSingleton()
public ClassLoader getContextClassLoaderOnStart()
public void afterPropertiesSet() throws Exception
Exception
protected abstract void initCustomRegistry(T context)
protected void initLazyLoadTypeConverteres()
protected void initJMXAgent() throws Exception
Exception
protected void initPropertyPlaceholder() throws Exception
Exception
protected void initRouteRefs() throws Exception
Exception
protected abstract <S> S getBeanForType(Class<S> clazz)
public void destroy() throws Exception
Exception
public T getContext()
public abstract T getContext(boolean create)
public abstract List<org.apache.camel.model.RouteDefinition> getRoutes()
getRoutes
in interface org.apache.camel.model.RouteContainer
public abstract List<? extends AbstractCamelEndpointFactoryBean> getEndpoints()
public abstract List<? extends AbstractCamelRedeliveryPolicyFactoryBean> getRedeliveryPolicies()
public abstract List<org.apache.camel.model.InterceptDefinition> getIntercepts()
public abstract List<org.apache.camel.model.InterceptFromDefinition> getInterceptFroms()
public abstract List<org.apache.camel.model.InterceptSendToEndpointDefinition> getInterceptSendToEndpoints()
public abstract org.apache.camel.model.config.PropertiesDefinition getProperties()
public abstract String[] getPackages()
public abstract org.apache.camel.model.PackageScanDefinition getPackageScan()
public abstract void setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan)
public abstract org.apache.camel.model.ContextScanDefinition getContextScan()
public abstract void setContextScan(org.apache.camel.model.ContextScanDefinition contextScan)
public abstract CamelPropertyPlaceholderDefinition getCamelPropertyPlaceholder()
public abstract String getTrace()
public abstract String getStreamCache()
public abstract String getDelayer()
public abstract String getHandleFault()
public abstract String getAutoStartup()
public abstract String getUseMDCLogging()
public abstract String getUseBreadcrumb()
public abstract String getManagementNamePattern()
@Deprecated public abstract Boolean getLazyLoadTypeConverters()
public abstract CamelJMXAgentDefinition getCamelJMXAgent()
public abstract List<org.apache.camel.model.RouteBuilderDefinition> getBuilderRefs()
public abstract List<org.apache.camel.model.RouteContextRefDefinition> getRouteRefs()
public abstract String getErrorHandlerRef()
public abstract org.apache.camel.model.dataformat.DataFormatsDefinition getDataFormats()
public abstract List<org.apache.camel.model.OnExceptionDefinition> getOnExceptions()
public abstract List<org.apache.camel.model.OnCompletionDefinition> getOnCompletions()
public abstract org.apache.camel.ShutdownRoute getShutdownRoute()
public abstract org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
public abstract List<org.apache.camel.model.ThreadPoolProfileDefinition> getThreadPoolProfiles()
public abstract String getDependsOn()
protected void initCamelContext(T ctx) throws Exception
ctx
- the context
Exception
- is thrown if error occurredprotected void initThreadPoolProfiles(T context) throws Exception
Exception
protected abstract void initBeanPostProcessor(T context)
protected void installRoutes() throws Exception
Exception
protected abstract void postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder)
protected void findRouteBuilders() throws Exception
RouteBuilder
instances on the classpath
Exception
protected abstract void findRouteBuildersByPackageScan(String[] packages, org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders) throws Exception
Exception
protected abstract void findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |