public abstract class AbstractCamelContext
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.ExtendedCamelContext, org.apache.camel.Suspendable
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractCamelContext.Initialization |
| Constructor and Description |
|---|
AbstractCamelContext()
Creates the
CamelContext using
DefaultRegistry as registry. |
AbstractCamelContext(boolean init) |
AbstractCamelContext(org.apache.camel.spi.Registry registry)
Creates the
CamelContext using the given registry |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.apache.camel.CamelContext> |
adapt(Class<T> type) |
void |
addComponent(String componentName,
org.apache.camel.Component component) |
org.apache.camel.Endpoint |
addEndpoint(String uri,
org.apache.camel.Endpoint endpoint) |
protected org.apache.camel.Endpoint |
addEndpointToRegistry(String uri,
org.apache.camel.Endpoint endpoint)
Strategy to add the given endpoint to the internal endpoint registry
|
void |
addInterceptStrategy(org.apache.camel.spi.InterceptStrategy interceptStrategy) |
void |
addLifecycleStrategy(org.apache.camel.spi.LifecycleStrategy lifecycleStrategy) |
void |
addLogListener(org.apache.camel.spi.LogListener listener) |
void |
addRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration) |
void |
addRoute(org.apache.camel.Route route) |
void |
addRoutePolicyFactory(org.apache.camel.spi.RoutePolicyFactory routePolicyFactory) |
void |
addRoutes(org.apache.camel.RoutesBuilder builder) |
void |
addService(Object object) |
void |
addService(Object object,
boolean stopOnShutdown) |
void |
addService(Object object,
boolean stopOnShutdown,
boolean forceStart) |
void |
addStartupListener(org.apache.camel.StartupListener listener) |
protected void |
bindDataFormats() |
protected org.apache.camel.Endpoint |
convertBeanToEndpoint(String uri,
Object bean)
Strategy method for attempting to convert the bean from a
Registry to an endpoint using some kind of transformation or
wrapper |
protected abstract org.apache.camel.spi.AsyncProcessorAwaitManager |
createAsyncProcessorAwaitManager() |
protected abstract org.apache.camel.spi.BeanIntrospection |
createBeanIntrospection() |
protected abstract org.apache.camel.spi.CamelBeanPostProcessor |
createBeanPostProcessor() |
protected abstract org.apache.camel.spi.BeanProcessorFactory |
createBeanProcessorFactory() |
protected abstract org.apache.camel.spi.BeanProxyFactory |
createBeanProxyFactory() |
protected abstract org.apache.camel.spi.CamelContextNameStrategy |
createCamelContextNameStrategy() |
protected abstract org.apache.camel.spi.ClassResolver |
createClassResolver() |
protected abstract org.apache.camel.spi.ComponentResolver |
createComponentResolver() |
org.apache.camel.ConsumerTemplate |
createConsumerTemplate() |
org.apache.camel.ConsumerTemplate |
createConsumerTemplate(int maximumCacheSize) |
org.apache.camel.spi.DataFormat |
createDataFormat(String name) |
protected abstract org.apache.camel.spi.DataFormatResolver |
createDataFormatResolver() |
protected org.apache.camel.Endpoint |
createEndpoint(String uri)
A pluggable strategy to allow an endpoint to be created without requiring
a component to be its factory, such as for looking up the URI inside some
Registry |
protected abstract org.apache.camel.spi.EndpointRegistry<EndpointKey> |
createEndpointRegistry(Map<EndpointKey,org.apache.camel.Endpoint> endpoints) |
protected ScheduledExecutorService |
createErrorHandlerExecutorService() |
protected abstract org.apache.camel.spi.ExecutorServiceManager |
createExecutorServiceManager() |
protected org.apache.camel.spi.FactoryFinder |
createFactoryFinder(String path) |
protected abstract org.apache.camel.spi.FactoryFinderResolver |
createFactoryFinderResolver() |
org.apache.camel.FluentProducerTemplate |
createFluentProducerTemplate() |
org.apache.camel.FluentProducerTemplate |
createFluentProducerTemplate(int maximumCacheSize) |
protected abstract org.apache.camel.spi.HeadersMapFactory |
createHeadersMapFactory() |
protected abstract org.apache.camel.spi.InflightRepository |
createInflightRepository() |
protected abstract org.apache.camel.spi.Injector |
createInjector() |
protected abstract org.apache.camel.spi.LanguageResolver |
createLanguageResolver() |
protected abstract org.apache.camel.spi.ManagementNameStrategy |
createManagementNameStrategy() |
protected abstract org.apache.camel.spi.MessageHistoryFactory |
createMessageHistoryFactory() |
protected abstract org.apache.camel.spi.ModelJAXBContextFactory |
createModelJAXBContextFactory() |
protected abstract org.apache.camel.spi.NodeIdFactory |
createNodeIdFactory() |
protected abstract org.apache.camel.spi.PackageScanClassResolver |
createPackageScanClassResolver() |
protected abstract org.apache.camel.spi.PackageScanResourceResolver |
createPackageScanResourceResolver() |
protected abstract ServicePool<org.apache.camel.PollingConsumer> |
createPollingConsumerServicePool() |
protected abstract org.apache.camel.spi.ProcessorFactory |
createProcessorFactory() |
protected abstract ServicePool<org.apache.camel.Producer> |
createProducerServicePool() |
org.apache.camel.ProducerTemplate |
createProducerTemplate() |
org.apache.camel.ProducerTemplate |
createProducerTemplate(int maximumCacheSize) |
protected abstract org.apache.camel.spi.PropertiesComponent |
createPropertiesComponent() |
protected abstract org.apache.camel.spi.ReactiveExecutor |
createReactiveExecutor() |
protected abstract org.apache.camel.spi.Registry |
createRegistry() |
protected org.apache.camel.spi.RestRegistry |
createRestRegistry() |
protected abstract org.apache.camel.spi.RestRegistryFactory |
createRestRegistryFactory() |
protected abstract org.apache.camel.spi.RouteController |
createRouteController() |
protected abstract org.apache.camel.spi.ShutdownStrategy |
createShutdownStrategy() |
protected abstract org.apache.camel.spi.StreamCachingStrategy |
createStreamCachingStrategy() |
protected abstract org.apache.camel.spi.Tracer |
createTracer() |
protected abstract org.apache.camel.spi.TransformerRegistry<TransformerKey> |
createTransformerRegistry() |
protected abstract org.apache.camel.TypeConverter |
createTypeConverter() |
protected abstract org.apache.camel.spi.TypeConverterRegistry |
createTypeConverterRegistry() |
protected abstract org.apache.camel.spi.UnitOfWorkFactory |
createUnitOfWorkFactory() |
protected abstract org.apache.camel.spi.UuidGenerator |
createUuidGenerator() |
protected abstract org.apache.camel.spi.ValidatorRegistry<ValidatorKey> |
createValidatorRegistry() |
void |
deferStartService(Object object,
boolean stopOnShutdown) |
void |
disableJMX() |
protected <T> T |
doAddService(T object) |
protected <T> T |
doAddService(T object,
boolean stopOnShutdown) |
protected <T> T |
doAddService(T object,
boolean stopOnShutdown,
boolean forceStart) |
void |
doInit() |
protected void |
doResume() |
protected void |
doShutdownRoute(String routeId,
long timeout,
TimeUnit timeUnit,
boolean removingRoutes) |
protected void |
doStart() |
protected void |
doStartCamel() |
protected void |
doStartEagerServices() |
protected void |
doStartOrResumeRoutes(Map<String,BaseRouteService> routeServices,
boolean checkClash,
boolean startConsumer,
boolean resumeConsumer,
boolean addingRoutes)
Starts or resumes the routes
|
protected void |
doStartStandardServices() |
protected void |
doStop() |
protected void |
doSuspend() |
protected void |
forceLazyInitialization()
Force some lazy initialization to occur upfront before we start any
components and create routes
|
protected void |
forceStopLazyInitialization()
Force clear lazy initialization so they can be re-created on restart
|
org.apache.camel.spi.AnnotationBasedProcessorFactory |
getAnnotationBasedProcessorFactory() |
ClassLoader |
getApplicationContextClassLoader() |
org.apache.camel.spi.AsyncProcessorAwaitManager |
getAsyncProcessorAwaitManager() |
org.apache.camel.spi.BeanIntrospection |
getBeanIntrospection() |
org.apache.camel.spi.CamelBeanPostProcessor |
getBeanPostProcessor() |
org.apache.camel.spi.BeanProcessorFactory |
getBeanProcessorFactory() |
org.apache.camel.spi.BeanProxyFactory |
getBeanProxyFactory() |
org.apache.camel.spi.ClassResolver |
getClassResolver() |
org.apache.camel.Component |
getComponent(String name) |
org.apache.camel.Component |
getComponent(String name,
boolean autoCreateComponents) |
org.apache.camel.Component |
getComponent(String name,
boolean autoCreateComponents,
boolean autoStart) |
<T extends org.apache.camel.Component> |
getComponent(String name,
Class<T> componentType) |
List<String> |
getComponentNames() |
String |
getComponentParameterJsonSchema(String componentName) |
org.apache.camel.spi.ComponentResolver |
getComponentResolver() |
String |
getDataFormatParameterJsonSchema(String dataFormatName) |
org.apache.camel.spi.DataFormatResolver |
getDataFormatResolver() |
org.apache.camel.spi.Debugger |
getDebugger() |
org.apache.camel.spi.FactoryFinder |
getDefaultFactoryFinder() |
org.apache.camel.spi.DeferServiceFactory |
getDeferServiceFactory() |
Long |
getDelayer() |
String |
getEipParameterJsonSchema(String eipName) |
org.apache.camel.Endpoint |
getEndpoint(String uri) |
<T extends org.apache.camel.Endpoint> |
getEndpoint(String name,
Class<T> endpointType) |
org.apache.camel.Endpoint |
getEndpoint(String uri,
Map<String,Object> parameters) |
protected EndpointKey |
getEndpointKey(String uri)
Gets the endpoint key to use for lookup or whe adding endpoints to the
DefaultEndpointRegistry |
protected EndpointKey |
getEndpointKey(String uri,
org.apache.camel.Endpoint endpoint)
Gets the endpoint key to use for lookup or whe adding endpoints to the
DefaultEndpointRegistry |
protected EndpointKey |
getEndpointKeyPreNormalized(String uri)
Gets the endpoint key to use for lookup or whe adding endpoints to the
DefaultEndpointRegistry |
Map<String,org.apache.camel.Endpoint> |
getEndpointMap() |
org.apache.camel.spi.EndpointRegistry<EndpointKey> |
getEndpointRegistry() |
Collection<org.apache.camel.Endpoint> |
getEndpoints() |
ScheduledExecutorService |
getErrorHandlerExecutorService() |
org.apache.camel.ErrorHandlerFactory |
getErrorHandlerFactory() |
org.apache.camel.spi.ExecutorServiceManager |
getExecutorServiceManager() |
<T> T |
getExtension(Class<T> type) |
org.apache.camel.spi.FactoryFinder |
getFactoryFinder(String path) |
org.apache.camel.spi.FactoryFinderResolver |
getFactoryFinderResolver() |
org.apache.camel.GlobalEndpointConfiguration |
getGlobalEndpointConfiguration() |
String |
getGlobalOption(String key) |
Map<String,String> |
getGlobalOptions() |
org.apache.camel.spi.HeadersMapFactory |
getHeadersMapFactory() |
org.apache.camel.spi.InflightRepository |
getInflightRepository() |
AbstractCamelContext.Initialization |
getInitialization() |
org.apache.camel.spi.Injector |
getInjector() |
List<org.apache.camel.spi.InterceptStrategy> |
getInterceptStrategies() |
List<String> |
getLanguageNames() |
String |
getLanguageParameterJsonSchema(String languageName) |
org.apache.camel.spi.LanguageResolver |
getLanguageResolver() |
List<org.apache.camel.spi.LifecycleStrategy> |
getLifecycleStrategies() |
Set<org.apache.camel.spi.LogListener> |
getLogListeners() |
org.apache.camel.spi.ManagementMBeanAssembler |
getManagementMBeanAssembler() |
String |
getManagementName() |
org.apache.camel.spi.ManagementNameStrategy |
getManagementNameStrategy() |
org.apache.camel.spi.ManagementStrategy |
getManagementStrategy() |
String |
getMDCLoggingKeysPattern() |
org.apache.camel.spi.MessageHistoryFactory |
getMessageHistoryFactory() |
org.apache.camel.spi.ModelJAXBContextFactory |
getModelJAXBContextFactory() |
String |
getName() |
org.apache.camel.spi.CamelContextNameStrategy |
getNameStrategy() |
org.apache.camel.spi.NodeIdFactory |
getNodeIdFactory() |
org.apache.camel.spi.PackageScanClassResolver |
getPackageScanClassResolver() |
org.apache.camel.spi.PackageScanResourceResolver |
getPackageScanResourceResolver() |
ServicePool<org.apache.camel.PollingConsumer> |
getPollingConsumerServicePool() |
org.apache.camel.Processor |
getProcessor(String id) |
<T extends org.apache.camel.Processor> |
getProcessor(String id,
Class<T> type) |
org.apache.camel.spi.ProcessorFactory |
getProcessorFactory() |
ServicePool<org.apache.camel.Producer> |
getProducerServicePool() |
org.apache.camel.spi.PropertiesComponent |
getPropertiesComponent() |
org.apache.camel.spi.ReactiveExecutor |
getReactiveExecutor() |
org.apache.camel.spi.Registry |
getRegistry() |
<T> T |
getRegistry(Class<T> type) |
org.apache.camel.spi.RestConfiguration |
getRestConfiguration() |
org.apache.camel.spi.RestConfiguration |
getRestConfiguration(String component,
boolean defaultIfNotExist) |
Collection<org.apache.camel.spi.RestConfiguration> |
getRestConfigurations() |
org.apache.camel.spi.RestRegistry |
getRestRegistry() |
org.apache.camel.spi.RestRegistryFactory |
getRestRegistryFactory() |
org.apache.camel.Route |
getRoute(String id) |
org.apache.camel.spi.RouteController |
getRouteController() |
List<org.apache.camel.spi.RoutePolicyFactory> |
getRoutePolicyFactories() |
List<org.apache.camel.Route> |
getRoutes() |
protected Map<String,BaseRouteService> |
getRouteServices() |
List<org.apache.camel.spi.RouteStartupOrder> |
getRouteStartupOrder() |
org.apache.camel.ServiceStatus |
getRouteStatus(String key) |
org.apache.camel.spi.RuntimeEndpointRegistry |
getRuntimeEndpointRegistry() |
org.apache.camel.ShutdownRoute |
getShutdownRoute() |
org.apache.camel.ShutdownRunningTask |
getShutdownRunningTask() |
org.apache.camel.spi.ShutdownStrategy |
getShutdownStrategy() |
org.apache.camel.support.jsse.SSLContextParameters |
getSSLContextParameters() |
org.apache.camel.spi.StreamCachingStrategy |
getStreamCachingStrategy() |
org.apache.camel.spi.Tracer |
getTracer() |
String |
getTracingPattern() |
org.apache.camel.spi.TransformerRegistry<TransformerKey> |
getTransformerRegistry() |
org.apache.camel.TypeConverter |
getTypeConverter() |
org.apache.camel.spi.TypeConverterRegistry |
getTypeConverterRegistry() |
org.apache.camel.spi.UnitOfWorkFactory |
getUnitOfWorkFactory() |
String |
getUptime() |
long |
getUptimeMillis() |
org.apache.camel.spi.UuidGenerator |
getUuidGenerator() |
org.apache.camel.spi.ValidatorRegistry<ValidatorKey> |
getValidatorRegistry() |
String |
getVersion() |
org.apache.camel.Component |
hasComponent(String componentName) |
org.apache.camel.Endpoint |
hasEndpoint(String uri) |
<T> T |
hasService(Class<T> type) |
boolean |
hasService(Object object) |
<T> Set<T> |
hasServices(Class<T> type) |
Boolean |
isAllowUseOriginalMessage() |
boolean |
isAutoCreateComponents() |
Boolean |
isAutoStartup() |
Boolean |
isBacklogTracing() |
Boolean |
isDebugging() |
boolean |
isJMXDisabled() |
Boolean |
isLoadTypeConverters() |
Boolean |
isLogExhaustedMessageBody() |
Boolean |
isLogMask() |
Boolean |
isMessageHistory() |
boolean |
isSetupRoutes() |
boolean |
isStartingRoutes() |
Boolean |
isStreamCaching() |
protected boolean |
isStreamCachingInUse() |
Boolean |
isTracing() |
Boolean |
isTypeConverterStatisticsEnabled() |
Boolean |
isUseBreadcrumb() |
Boolean |
isUseDataType() |
Boolean |
isUseMDCLogging() |
boolean |
isVetoStarted() |
protected void |
logRouteState(org.apache.camel.Route route,
String state) |
protected static <T> T |
lookup(org.apache.camel.CamelContext context,
String ref,
Class<T> type) |
protected static String |
normalizeEndpointUri(String uri)
Normalize uri so we can do endpoint hits with minor mistakes and
parameters is not in the same order.
|
void |
registerEndpointCallback(org.apache.camel.spi.EndpointStrategy strategy) |
org.apache.camel.Component |
removeComponent(String componentName) |
void |
removeEndpoint(org.apache.camel.Endpoint endpoint) |
Collection<org.apache.camel.Endpoint> |
removeEndpoints(String uri) |
void |
removeRoute(org.apache.camel.Route route) |
boolean |
removeRoute(String routeId) |
boolean |
removeService(Object object) |
org.apache.camel.Component |
resolveComponent(String name) |
org.apache.camel.spi.DataFormat |
resolveDataFormat(String name) |
org.apache.camel.spi.Language |
resolveLanguage(String language) |
String |
resolvePropertyPlaceholders(String text) |
org.apache.camel.spi.Transformer |
resolveTransformer(org.apache.camel.spi.DataType from,
org.apache.camel.spi.DataType to) |
org.apache.camel.spi.Transformer |
resolveTransformer(String scheme) |
org.apache.camel.spi.Validator |
resolveValidator(org.apache.camel.spi.DataType type) |
void |
resume() |
void |
resumeRoute(String routeId) |
protected void |
resumeRouteService(BaseRouteService routeService)
Resumes the given route service
|
protected boolean |
routeSupportsSuspension(String routeId) |
protected void |
safelyStartRouteServices(boolean forceAutoStart,
boolean checkClash,
boolean startConsumer,
boolean resumeConsumer,
boolean addingRoutes,
BaseRouteService... routeServices) |
protected void |
safelyStartRouteServices(boolean checkClash,
boolean startConsumer,
boolean resumeConsumer,
boolean addingRoutes,
Collection<BaseRouteService> routeServices)
Starts the routes services in a proper manner which ensures the routes
will be started in correct order, check for clash and that the routes
will also be shutdown in correct order as well.
|
void |
setAllowUseOriginalMessage(Boolean allowUseOriginalMessage) |
void |
setApplicationContextClassLoader(ClassLoader classLoader) |
void |
setAsyncProcessorAwaitManager(org.apache.camel.spi.AsyncProcessorAwaitManager asyncProcessorAwaitManager) |
void |
setAutoCreateComponents(boolean autoCreateComponents) |
void |
setAutoStartup(Boolean autoStartup) |
void |
setBacklogTracing(Boolean backlogTrace) |
void |
setBeanIntrospection(org.apache.camel.spi.BeanIntrospection beanIntrospection) |
void |
setBeanPostProcessor(org.apache.camel.spi.CamelBeanPostProcessor beanPostProcessor) |
void |
setClassResolver(org.apache.camel.spi.ClassResolver classResolver) |
void |
setComponentResolver(org.apache.camel.spi.ComponentResolver componentResolver) |
static void |
setContextCounter(int value)
Reset context counter to a preset value.
|
void |
setDataFormatResolver(org.apache.camel.spi.DataFormatResolver dataFormatResolver) |
void |
setDebugger(org.apache.camel.spi.Debugger debugger) |
void |
setDebugging(Boolean debug) |
<T> void |
setDefaultExtension(Class<T> type,
Supplier<T> module) |
void |
setDelayer(Long delay) |
void |
setErrorHandlerExecutorService(ScheduledExecutorService errorHandlerExecutorService) |
void |
setErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) |
void |
setExecutorServiceManager(org.apache.camel.spi.ExecutorServiceManager executorServiceManager) |
<T> void |
setExtension(Class<T> type,
T module) |
void |
setFactoryFinderResolver(org.apache.camel.spi.FactoryFinderResolver factoryFinderResolver) |
void |
setGlobalOptions(Map<String,String> globalOptions) |
void |
setHeadersMapFactory(org.apache.camel.spi.HeadersMapFactory headersMapFactory) |
void |
setInflightRepository(org.apache.camel.spi.InflightRepository repository) |
void |
setInitialization(AbstractCamelContext.Initialization initialization) |
void |
setInjector(org.apache.camel.spi.Injector injector) |
void |
setInterceptStrategies(List<org.apache.camel.spi.InterceptStrategy> interceptStrategies) |
void |
setLanguageResolver(org.apache.camel.spi.LanguageResolver languageResolver) |
void |
setLoadTypeConverters(Boolean loadTypeConverters) |
void |
setLogExhaustedMessageBody(Boolean logExhaustedMessageBody) |
void |
setLogMask(Boolean logMask) |
void |
setManagementMBeanAssembler(org.apache.camel.spi.ManagementMBeanAssembler managementMBeanAssembler) |
void |
setManagementName(String managementName) |
void |
setManagementNameStrategy(org.apache.camel.spi.ManagementNameStrategy managementNameStrategy) |
void |
setManagementStrategy(org.apache.camel.spi.ManagementStrategy managementStrategy) |
void |
setMDCLoggingKeysPattern(String pattern) |
void |
setMessageHistory(Boolean messageHistory) |
void |
setMessageHistoryFactory(org.apache.camel.spi.MessageHistoryFactory messageHistoryFactory) |
void |
setModelJAXBContextFactory(org.apache.camel.spi.ModelJAXBContextFactory modelJAXBContextFactory) |
void |
setName(String name) |
void |
setNameStrategy(org.apache.camel.spi.CamelContextNameStrategy nameStrategy) |
void |
setNodeIdFactory(org.apache.camel.spi.NodeIdFactory idFactory) |
void |
setPackageScanClassResolver(org.apache.camel.spi.PackageScanClassResolver packageScanClassResolver) |
void |
setPackageScanResourceResolver(org.apache.camel.spi.PackageScanResourceResolver packageScanResourceResolver) |
void |
setPollingConsumerServicePool(ServicePool<org.apache.camel.PollingConsumer> pollingConsumerServicePool) |
void |
setProcessorFactory(org.apache.camel.spi.ProcessorFactory processorFactory) |
void |
setProducerServicePool(ServicePool<org.apache.camel.Producer> producerServicePool) |
void |
setPropertiesComponent(org.apache.camel.spi.PropertiesComponent propertiesComponent) |
void |
setReactiveExecutor(org.apache.camel.spi.ReactiveExecutor reactiveExecutor) |
void |
setRegistry(org.apache.camel.spi.Registry registry) |
void |
setRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration) |
void |
setRestRegistry(org.apache.camel.spi.RestRegistry restRegistry) |
void |
setRestRegistryFactory(org.apache.camel.spi.RestRegistryFactory restRegistryFactory) |
void |
setRouteController(org.apache.camel.spi.RouteController routeController) |
void |
setRoutePolicyFactories(List<org.apache.camel.spi.RoutePolicyFactory> routePolicyFactories) |
void |
setRuntimeEndpointRegistry(org.apache.camel.spi.RuntimeEndpointRegistry runtimeEndpointRegistry) |
void |
setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute) |
void |
setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask) |
void |
setShutdownStrategy(org.apache.camel.spi.ShutdownStrategy shutdownStrategy) |
void |
setSSLContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) |
void |
setStartingRoutes(boolean starting) |
void |
setStreamCaching(Boolean cache) |
void |
setStreamCachingStrategy(org.apache.camel.spi.StreamCachingStrategy streamCachingStrategy) |
void |
setTracer(org.apache.camel.spi.Tracer tracer) |
void |
setTracing(Boolean tracing) |
void |
setTracingPattern(String tracePattern) |
void |
setTypeConverter(org.apache.camel.TypeConverter typeConverter) |
void |
setTypeConverterRegistry(org.apache.camel.spi.TypeConverterRegistry typeConverterRegistry) |
void |
setTypeConverterStatisticsEnabled(Boolean typeConverterStatisticsEnabled) |
void |
setUnitOfWorkFactory(org.apache.camel.spi.UnitOfWorkFactory unitOfWorkFactory) |
void |
setupManagement(Map<String,Object> options) |
void |
setupRoutes(boolean done) |
void |
setUseBreadcrumb(Boolean useBreadcrumb) |
void |
setUseDataType(Boolean useDataType) |
void |
setUseMDCLogging(Boolean useMDCLogging) |
void |
setUuidGenerator(org.apache.camel.spi.UuidGenerator uuidGenerator) |
protected boolean |
shouldStartRoutes()
Should we start newly added routes?
|
void |
shutdown() |
protected void |
shutdownRouteService(BaseRouteService routeService) |
void |
start() |
void |
startAllRoutes() |
void |
startRoute(String routeId) |
protected void |
startRouteDefinitions() |
void |
startRouteService(BaseRouteService routeService,
boolean addingRoutes)
Starts the given route service
|
void |
stop() |
void |
stopRoute(String routeId) |
void |
stopRoute(String routeId,
long timeout,
TimeUnit timeUnit) |
boolean |
stopRoute(String routeId,
long timeout,
TimeUnit timeUnit,
boolean abortAfterTimeout) |
protected void |
stopRouteService(BaseRouteService routeService) |
protected void |
stopRouteService(BaseRouteService routeService,
boolean removingRoutes) |
void |
suspend() |
void |
suspendRoute(String routeId) |
void |
suspendRoute(String routeId,
long timeout,
TimeUnit timeUnit) |
protected void |
suspendRouteService(BaseRouteService routeService) |
String |
toString() |
build, doBuild, doShutdown, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspendedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic AbstractCamelContext()
CamelContext using
DefaultRegistry as registry.
Use one of the other constructors to force use an explicit registry.public AbstractCamelContext(org.apache.camel.spi.Registry registry)
CamelContext using the given registryregistry - the registrypublic AbstractCamelContext(boolean init)
public void doInit()
throws Exception
doInit in class org.apache.camel.support.service.ServiceSupportExceptionpublic <T extends org.apache.camel.CamelContext> T adapt(Class<T> type)
adapt in interface org.apache.camel.CamelContextpublic <T> T getExtension(Class<T> type)
getExtension in interface org.apache.camel.CamelContextpublic <T> void setExtension(Class<T> type, T module)
setExtension in interface org.apache.camel.CamelContextpublic boolean isVetoStarted()
isVetoStarted in interface org.apache.camel.CamelContextpublic AbstractCamelContext.Initialization getInitialization()
public void setInitialization(AbstractCamelContext.Initialization initialization)
public String getName()
getName in interface org.apache.camel.CamelContextpublic void setName(String name)
setName in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.CamelContextNameStrategy getNameStrategy()
getNameStrategy in interface org.apache.camel.CamelContextpublic void setNameStrategy(org.apache.camel.spi.CamelContextNameStrategy nameStrategy)
setNameStrategy in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ManagementNameStrategy getManagementNameStrategy()
getManagementNameStrategy in interface org.apache.camel.CamelContextpublic void setManagementNameStrategy(org.apache.camel.spi.ManagementNameStrategy managementNameStrategy)
setManagementNameStrategy in interface org.apache.camel.CamelContextpublic String getManagementName()
getManagementName in interface org.apache.camel.CamelContextpublic void setManagementName(String managementName)
setManagementName in interface org.apache.camel.CamelContextpublic org.apache.camel.Component hasComponent(String componentName)
hasComponent in interface org.apache.camel.CamelContextpublic void addComponent(String componentName, org.apache.camel.Component component)
addComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.Component getComponent(String name)
getComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.Component getComponent(String name, boolean autoCreateComponents)
getComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.Component getComponent(String name, boolean autoCreateComponents, boolean autoStart)
getComponent in interface org.apache.camel.CamelContextpublic <T extends org.apache.camel.Component> T getComponent(String name, Class<T> componentType)
getComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.Component resolveComponent(String name)
public org.apache.camel.Component removeComponent(String componentName)
removeComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.EndpointRegistry<EndpointKey> getEndpointRegistry()
getEndpointRegistry in interface org.apache.camel.CamelContextpublic Collection<org.apache.camel.Endpoint> getEndpoints()
getEndpoints in interface org.apache.camel.CamelContextpublic Map<String,org.apache.camel.Endpoint> getEndpointMap()
getEndpointMap in interface org.apache.camel.CamelContextpublic org.apache.camel.Endpoint hasEndpoint(String uri)
hasEndpoint in interface org.apache.camel.CamelContextpublic org.apache.camel.Endpoint addEndpoint(String uri, org.apache.camel.Endpoint endpoint) throws Exception
addEndpoint in interface org.apache.camel.CamelContextExceptionpublic void removeEndpoint(org.apache.camel.Endpoint endpoint)
throws Exception
removeEndpoint in interface org.apache.camel.CamelContextExceptionpublic Collection<org.apache.camel.Endpoint> removeEndpoints(String uri) throws Exception
removeEndpoints in interface org.apache.camel.CamelContextExceptionpublic org.apache.camel.Endpoint getEndpoint(String uri)
getEndpoint in interface org.apache.camel.CamelContextpublic org.apache.camel.Endpoint getEndpoint(String uri, Map<String,Object> parameters)
getEndpoint in interface org.apache.camel.CamelContextpublic <T extends org.apache.camel.Endpoint> T getEndpoint(String name, Class<T> endpointType)
getEndpoint in interface org.apache.camel.CamelContextpublic void registerEndpointCallback(org.apache.camel.spi.EndpointStrategy strategy)
registerEndpointCallback in interface org.apache.camel.ExtendedCamelContextprotected org.apache.camel.Endpoint addEndpointToRegistry(String uri, org.apache.camel.Endpoint endpoint)
uri - uri of the endpointendpoint - the endpoint to addprotected static String normalizeEndpointUri(String uri)
uri - the uriorg.apache.camel.ResolveEndpointFailedException - if uri cannot be normalizedprotected EndpointKey getEndpointKey(String uri)
DefaultEndpointRegistryuri - the endpoint uriprotected EndpointKey getEndpointKeyPreNormalized(String uri)
DefaultEndpointRegistryuri - the endpoint uri which is pre normalizedprotected EndpointKey getEndpointKey(String uri, org.apache.camel.Endpoint endpoint)
DefaultEndpointRegistryuri - the endpoint uriendpoint - the endpointpublic org.apache.camel.GlobalEndpointConfiguration getGlobalEndpointConfiguration()
getGlobalEndpointConfiguration in interface org.apache.camel.CamelContextpublic void setRouteController(org.apache.camel.spi.RouteController routeController)
setRouteController in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.RouteController getRouteController()
getRouteController in interface org.apache.camel.CamelContextpublic List<org.apache.camel.spi.RouteStartupOrder> getRouteStartupOrder()
getRouteStartupOrder in interface org.apache.camel.ExtendedCamelContextpublic List<org.apache.camel.Route> getRoutes()
getRoutes in interface org.apache.camel.CamelContextpublic org.apache.camel.Route getRoute(String id)
getRoute in interface org.apache.camel.CamelContextpublic org.apache.camel.Processor getProcessor(String id)
getProcessor in interface org.apache.camel.CamelContextpublic <T extends org.apache.camel.Processor> T getProcessor(String id, Class<T> type)
getProcessor in interface org.apache.camel.CamelContextpublic void removeRoute(org.apache.camel.Route route)
public void addRoute(org.apache.camel.Route route)
public void addRoutes(org.apache.camel.RoutesBuilder builder)
throws Exception
addRoutes in interface org.apache.camel.CamelContextExceptionpublic org.apache.camel.ServiceStatus getRouteStatus(String key)
public boolean isStartingRoutes()
public void setStartingRoutes(boolean starting)
public boolean isSetupRoutes()
isSetupRoutes in interface org.apache.camel.ExtendedCamelContextpublic boolean stopRoute(String routeId, long timeout, TimeUnit timeUnit, boolean abortAfterTimeout) throws Exception
Exceptionpublic void stopRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
Exceptionprotected void doShutdownRoute(String routeId, long timeout, TimeUnit timeUnit, boolean removingRoutes) throws Exception
Exceptionpublic boolean removeRoute(String routeId) throws Exception
removeRoute in interface org.apache.camel.CamelContextExceptionpublic void suspendRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
Exceptionpublic void addService(Object object) throws Exception
addService in interface org.apache.camel.CamelContextExceptionpublic void addService(Object object, boolean stopOnShutdown) throws Exception
addService in interface org.apache.camel.CamelContextExceptionpublic void addService(Object object, boolean stopOnShutdown, boolean forceStart) throws Exception
addService in interface org.apache.camel.CamelContextExceptionprotected <T> T doAddService(T object)
protected <T> T doAddService(T object,
boolean stopOnShutdown)
protected <T> T doAddService(T object,
boolean stopOnShutdown,
boolean forceStart)
public boolean removeService(Object object) throws Exception
removeService in interface org.apache.camel.CamelContextExceptionpublic boolean hasService(Object object)
hasService in interface org.apache.camel.CamelContextpublic <T> T hasService(Class<T> type)
hasService in interface org.apache.camel.CamelContextpublic <T> Set<T> hasServices(Class<T> type)
hasServices in interface org.apache.camel.CamelContextpublic void deferStartService(Object object, boolean stopOnShutdown) throws Exception
deferStartService in interface org.apache.camel.CamelContextExceptionpublic void addStartupListener(org.apache.camel.StartupListener listener)
throws Exception
addStartupListener in interface org.apache.camel.CamelContextExceptionpublic String getComponentParameterJsonSchema(String componentName) throws IOException
IOExceptionpublic String getDataFormatParameterJsonSchema(String dataFormatName) throws IOException
IOExceptionpublic String getLanguageParameterJsonSchema(String languageName) throws IOException
IOExceptionpublic String getEipParameterJsonSchema(String eipName) throws IOException
IOExceptionpublic org.apache.camel.spi.Language resolveLanguage(String language)
resolveLanguage in interface org.apache.camel.CamelContextpublic String resolvePropertyPlaceholders(String text)
resolvePropertyPlaceholders in interface org.apache.camel.CamelContextpublic org.apache.camel.TypeConverter getTypeConverter()
getTypeConverter in interface org.apache.camel.CamelContextpublic void setTypeConverter(org.apache.camel.TypeConverter typeConverter)
public org.apache.camel.spi.TypeConverterRegistry getTypeConverterRegistry()
getTypeConverterRegistry in interface org.apache.camel.CamelContextpublic void setTypeConverterRegistry(org.apache.camel.spi.TypeConverterRegistry typeConverterRegistry)
setTypeConverterRegistry in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.Injector getInjector()
getInjector in interface org.apache.camel.CamelContextpublic void setInjector(org.apache.camel.spi.Injector injector)
setInjector in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.PropertiesComponent getPropertiesComponent()
getPropertiesComponent in interface org.apache.camel.CamelContextpublic void setPropertiesComponent(org.apache.camel.spi.PropertiesComponent propertiesComponent)
setPropertiesComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.CamelBeanPostProcessor getBeanPostProcessor()
getBeanPostProcessor in interface org.apache.camel.ExtendedCamelContextpublic void setBeanPostProcessor(org.apache.camel.spi.CamelBeanPostProcessor beanPostProcessor)
public org.apache.camel.spi.ManagementMBeanAssembler getManagementMBeanAssembler()
getManagementMBeanAssembler in interface org.apache.camel.ExtendedCamelContextpublic void setManagementMBeanAssembler(org.apache.camel.spi.ManagementMBeanAssembler managementMBeanAssembler)
public org.apache.camel.spi.ComponentResolver getComponentResolver()
public void setComponentResolver(org.apache.camel.spi.ComponentResolver componentResolver)
public org.apache.camel.spi.LanguageResolver getLanguageResolver()
public void setLanguageResolver(org.apache.camel.spi.LanguageResolver languageResolver)
public boolean isAutoCreateComponents()
public void setAutoCreateComponents(boolean autoCreateComponents)
public org.apache.camel.spi.Registry getRegistry()
getRegistry in interface org.apache.camel.CamelContextpublic <T> T getRegistry(Class<T> type)
getRegistry in interface org.apache.camel.CamelContextpublic void setRegistry(org.apache.camel.spi.Registry registry)
setRegistry in interface org.apache.camel.ExtendedCamelContextpublic List<org.apache.camel.spi.LifecycleStrategy> getLifecycleStrategies()
getLifecycleStrategies in interface org.apache.camel.CamelContextpublic void addLifecycleStrategy(org.apache.camel.spi.LifecycleStrategy lifecycleStrategy)
addLifecycleStrategy in interface org.apache.camel.CamelContextpublic void setupRoutes(boolean done)
setupRoutes in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.RestConfiguration getRestConfiguration()
getRestConfiguration in interface org.apache.camel.CamelContextpublic void setRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration)
setRestConfiguration in interface org.apache.camel.CamelContextpublic Collection<org.apache.camel.spi.RestConfiguration> getRestConfigurations()
getRestConfigurations in interface org.apache.camel.CamelContextpublic void addRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration)
addRestConfiguration in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.RestConfiguration getRestConfiguration(String component, boolean defaultIfNotExist)
getRestConfiguration in interface org.apache.camel.CamelContextpublic List<org.apache.camel.spi.InterceptStrategy> getInterceptStrategies()
getInterceptStrategies in interface org.apache.camel.ExtendedCamelContextpublic void setInterceptStrategies(List<org.apache.camel.spi.InterceptStrategy> interceptStrategies)
public void addInterceptStrategy(org.apache.camel.spi.InterceptStrategy interceptStrategy)
addInterceptStrategy in interface org.apache.camel.ExtendedCamelContextpublic List<org.apache.camel.spi.RoutePolicyFactory> getRoutePolicyFactories()
getRoutePolicyFactories in interface org.apache.camel.CamelContextpublic void setRoutePolicyFactories(List<org.apache.camel.spi.RoutePolicyFactory> routePolicyFactories)
public void addRoutePolicyFactory(org.apache.camel.spi.RoutePolicyFactory routePolicyFactory)
addRoutePolicyFactory in interface org.apache.camel.CamelContextpublic Set<org.apache.camel.spi.LogListener> getLogListeners()
getLogListeners in interface org.apache.camel.ExtendedCamelContextpublic void addLogListener(org.apache.camel.spi.LogListener listener)
addLogListener in interface org.apache.camel.ExtendedCamelContextpublic void setStreamCaching(Boolean cache)
setStreamCaching in interface org.apache.camel.RuntimeConfigurationpublic Boolean isStreamCaching()
isStreamCaching in interface org.apache.camel.RuntimeConfigurationpublic void setTracing(Boolean tracing)
setTracing in interface org.apache.camel.RuntimeConfigurationpublic Boolean isTracing()
isTracing in interface org.apache.camel.RuntimeConfigurationpublic String getTracingPattern()
getTracingPattern in interface org.apache.camel.RuntimeConfigurationpublic void setTracingPattern(String tracePattern)
setTracingPattern in interface org.apache.camel.RuntimeConfigurationpublic Boolean isBacklogTracing()
isBacklogTracing in interface org.apache.camel.RuntimeConfigurationpublic void setBacklogTracing(Boolean backlogTrace)
setBacklogTracing in interface org.apache.camel.RuntimeConfigurationpublic void setDebugging(Boolean debug)
setDebugging in interface org.apache.camel.RuntimeConfigurationpublic Boolean isDebugging()
isDebugging in interface org.apache.camel.RuntimeConfigurationpublic void setMessageHistory(Boolean messageHistory)
setMessageHistory in interface org.apache.camel.RuntimeConfigurationpublic Boolean isMessageHistory()
isMessageHistory in interface org.apache.camel.RuntimeConfigurationpublic void setLogMask(Boolean logMask)
setLogMask in interface org.apache.camel.RuntimeConfigurationpublic Boolean isLogMask()
isLogMask in interface org.apache.camel.RuntimeConfigurationpublic Boolean isLogExhaustedMessageBody()
isLogExhaustedMessageBody in interface org.apache.camel.RuntimeConfigurationpublic void setLogExhaustedMessageBody(Boolean logExhaustedMessageBody)
setLogExhaustedMessageBody in interface org.apache.camel.RuntimeConfigurationpublic Long getDelayer()
getDelayer in interface org.apache.camel.RuntimeConfigurationpublic void setDelayer(Long delay)
setDelayer in interface org.apache.camel.RuntimeConfigurationpublic org.apache.camel.ProducerTemplate createProducerTemplate()
createProducerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.ProducerTemplate createProducerTemplate(int maximumCacheSize)
createProducerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.FluentProducerTemplate createFluentProducerTemplate()
createFluentProducerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.FluentProducerTemplate createFluentProducerTemplate(int maximumCacheSize)
createFluentProducerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.ConsumerTemplate createConsumerTemplate()
createConsumerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.ConsumerTemplate createConsumerTemplate(int maximumCacheSize)
createConsumerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.ErrorHandlerFactory getErrorHandlerFactory()
getErrorHandlerFactory in interface org.apache.camel.ExtendedCamelContextpublic void setErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory)
setErrorHandlerFactory in interface org.apache.camel.ExtendedCamelContextpublic ScheduledExecutorService getErrorHandlerExecutorService()
getErrorHandlerExecutorService in interface org.apache.camel.ExtendedCamelContextprotected ScheduledExecutorService createErrorHandlerExecutorService()
public void setErrorHandlerExecutorService(ScheduledExecutorService errorHandlerExecutorService)
public void setProducerServicePool(ServicePool<org.apache.camel.Producer> producerServicePool)
public ServicePool<org.apache.camel.Producer> getProducerServicePool()
public ServicePool<org.apache.camel.PollingConsumer> getPollingConsumerServicePool()
public void setPollingConsumerServicePool(ServicePool<org.apache.camel.PollingConsumer> pollingConsumerServicePool)
public org.apache.camel.spi.UnitOfWorkFactory getUnitOfWorkFactory()
getUnitOfWorkFactory in interface org.apache.camel.ExtendedCamelContextpublic void setUnitOfWorkFactory(org.apache.camel.spi.UnitOfWorkFactory unitOfWorkFactory)
setUnitOfWorkFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.RuntimeEndpointRegistry getRuntimeEndpointRegistry()
getRuntimeEndpointRegistry in interface org.apache.camel.CamelContextpublic void setRuntimeEndpointRegistry(org.apache.camel.spi.RuntimeEndpointRegistry runtimeEndpointRegistry)
setRuntimeEndpointRegistry in interface org.apache.camel.CamelContextpublic String getUptime()
getUptime in interface org.apache.camel.CamelContextpublic long getUptimeMillis()
getUptimeMillis in interface org.apache.camel.CamelContextpublic String getVersion()
getVersion in interface org.apache.camel.CamelContextprotected void doSuspend()
throws Exception
doSuspend in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doResume()
throws Exception
doResume in class org.apache.camel.support.service.ServiceSupportExceptionpublic void start()
start in interface org.apache.camel.CamelContextstart in interface org.apache.camel.Servicestart in class org.apache.camel.support.service.ServiceSupportpublic void stop()
stop in interface org.apache.camel.CamelContextstop in interface org.apache.camel.Servicestop in class org.apache.camel.support.service.ServiceSupportpublic void suspend()
suspend in interface org.apache.camel.SuspendableServicesuspend in class org.apache.camel.support.service.ServiceSupportpublic void resume()
resume in interface org.apache.camel.SuspendableServiceresume in class org.apache.camel.support.service.ServiceSupportpublic void shutdown()
shutdown in interface org.apache.camel.ShutdownableServiceshutdown in class org.apache.camel.support.service.ServiceSupportprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doStartOrResumeRoutes(Map<String,BaseRouteService> routeServices, boolean checkClash, boolean startConsumer, boolean resumeConsumer, boolean addingRoutes) throws Exception
routeServices - the routes to start (will only start a route if its
not already started)checkClash - whether to check for startup ordering clashstartConsumer - whether the route consumer should be started. Can be
used to warmup the route without starting the consumer.resumeConsumer - whether the route consumer should be resumed.addingRoutes - whether we are adding new routesException - is thrown if error starting routesprotected boolean routeSupportsSuspension(String routeId)
public void startRouteService(BaseRouteService routeService, boolean addingRoutes) throws Exception
Exceptionprotected void resumeRouteService(BaseRouteService routeService) throws Exception
Exceptionprotected void stopRouteService(BaseRouteService routeService, boolean removingRoutes) throws Exception
Exceptionprotected void logRouteState(org.apache.camel.Route route,
String state)
protected void stopRouteService(BaseRouteService routeService) throws Exception
Exceptionprotected void shutdownRouteService(BaseRouteService routeService) throws Exception
Exceptionprotected void suspendRouteService(BaseRouteService routeService) throws Exception
Exceptionprotected void safelyStartRouteServices(boolean checkClash,
boolean startConsumer,
boolean resumeConsumer,
boolean addingRoutes,
Collection<BaseRouteService> routeServices)
throws Exception
checkClash - whether to check for startup order clashstartConsumer - whether the route consumer should be started. Can be
used to warmup the route without starting the consumer.resumeConsumer - whether the route consumer should be resumed.addingRoutes - whether we are adding new routesrouteServices - the routesException - is thrown if error starting the routesprotected void safelyStartRouteServices(boolean forceAutoStart,
boolean checkClash,
boolean startConsumer,
boolean resumeConsumer,
boolean addingRoutes,
BaseRouteService... routeServices)
throws Exception
protected void forceLazyInitialization()
protected void doStartStandardServices()
protected void doStartEagerServices()
protected void forceStopLazyInitialization()
protected org.apache.camel.Endpoint createEndpoint(String uri)
Registryuri - the uri for the endpoint to be createdprotected org.apache.camel.Endpoint convertBeanToEndpoint(String uri, Object bean)
Registry to an endpoint using some kind of transformation or
wrapperuri - the uri for the endpoint (and name in the registry)bean - the bean to be converted to an endpoint, which will be not
nullprotected boolean shouldStartRoutes()
public Map<String,String> getGlobalOptions()
getGlobalOptions in interface org.apache.camel.CamelContextpublic void setGlobalOptions(Map<String,String> globalOptions)
setGlobalOptions in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.FactoryFinder getDefaultFactoryFinder()
getDefaultFactoryFinder in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.FactoryFinderResolver getFactoryFinderResolver()
getFactoryFinderResolver in interface org.apache.camel.ExtendedCamelContextpublic void setFactoryFinderResolver(org.apache.camel.spi.FactoryFinderResolver factoryFinderResolver)
setFactoryFinderResolver in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.FactoryFinder getFactoryFinder(String path) throws org.apache.camel.NoFactoryAvailableException
getFactoryFinder in interface org.apache.camel.ExtendedCamelContextorg.apache.camel.NoFactoryAvailableExceptionprotected org.apache.camel.spi.FactoryFinder createFactoryFinder(String path)
public org.apache.camel.spi.ClassResolver getClassResolver()
getClassResolver in interface org.apache.camel.CamelContextpublic void setClassResolver(org.apache.camel.spi.ClassResolver classResolver)
setClassResolver in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.PackageScanClassResolver getPackageScanClassResolver()
getPackageScanClassResolver in interface org.apache.camel.ExtendedCamelContextpublic void setPackageScanClassResolver(org.apache.camel.spi.PackageScanClassResolver packageScanClassResolver)
setPackageScanClassResolver in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.PackageScanResourceResolver getPackageScanResourceResolver()
getPackageScanResourceResolver in interface org.apache.camel.ExtendedCamelContextpublic void setPackageScanResourceResolver(org.apache.camel.spi.PackageScanResourceResolver packageScanResourceResolver)
setPackageScanResourceResolver in interface org.apache.camel.ExtendedCamelContextpublic List<String> getComponentNames()
getComponentNames in interface org.apache.camel.CamelContextpublic List<String> getLanguageNames()
getLanguageNames in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ModelJAXBContextFactory getModelJAXBContextFactory()
getModelJAXBContextFactory in interface org.apache.camel.ExtendedCamelContextpublic void setModelJAXBContextFactory(org.apache.camel.spi.ModelJAXBContextFactory modelJAXBContextFactory)
setModelJAXBContextFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.NodeIdFactory getNodeIdFactory()
getNodeIdFactory in interface org.apache.camel.ExtendedCamelContextpublic void setNodeIdFactory(org.apache.camel.spi.NodeIdFactory idFactory)
setNodeIdFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.ManagementStrategy getManagementStrategy()
getManagementStrategy in interface org.apache.camel.CamelContextpublic void setManagementStrategy(org.apache.camel.spi.ManagementStrategy managementStrategy)
setManagementStrategy in interface org.apache.camel.CamelContextpublic void disableJMX()
disableJMX in interface org.apache.camel.CamelContextpublic boolean isJMXDisabled()
public void setupManagement(Map<String,Object> options)
setupManagement in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.InflightRepository getInflightRepository()
getInflightRepository in interface org.apache.camel.CamelContextpublic void setInflightRepository(org.apache.camel.spi.InflightRepository repository)
setInflightRepository in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.AsyncProcessorAwaitManager getAsyncProcessorAwaitManager()
getAsyncProcessorAwaitManager in interface org.apache.camel.ExtendedCamelContextpublic void setAsyncProcessorAwaitManager(org.apache.camel.spi.AsyncProcessorAwaitManager asyncProcessorAwaitManager)
setAsyncProcessorAwaitManager in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.BeanIntrospection getBeanIntrospection()
getBeanIntrospection in interface org.apache.camel.ExtendedCamelContextpublic void setBeanIntrospection(org.apache.camel.spi.BeanIntrospection beanIntrospection)
setBeanIntrospection in interface org.apache.camel.ExtendedCamelContextpublic void setAutoStartup(Boolean autoStartup)
setAutoStartup in interface org.apache.camel.RuntimeConfigurationpublic Boolean isAutoStartup()
isAutoStartup in interface org.apache.camel.RuntimeConfigurationpublic Boolean isLoadTypeConverters()
isLoadTypeConverters in interface org.apache.camel.CamelContextpublic void setLoadTypeConverters(Boolean loadTypeConverters)
setLoadTypeConverters in interface org.apache.camel.CamelContextpublic Boolean isTypeConverterStatisticsEnabled()
isTypeConverterStatisticsEnabled in interface org.apache.camel.CamelContextpublic void setTypeConverterStatisticsEnabled(Boolean typeConverterStatisticsEnabled)
setTypeConverterStatisticsEnabled in interface org.apache.camel.CamelContextpublic Boolean isUseMDCLogging()
isUseMDCLogging in interface org.apache.camel.CamelContextpublic void setUseMDCLogging(Boolean useMDCLogging)
setUseMDCLogging in interface org.apache.camel.CamelContextpublic String getMDCLoggingKeysPattern()
getMDCLoggingKeysPattern in interface org.apache.camel.CamelContextpublic void setMDCLoggingKeysPattern(String pattern)
setMDCLoggingKeysPattern in interface org.apache.camel.CamelContextpublic Boolean isUseDataType()
isUseDataType in interface org.apache.camel.CamelContextpublic void setUseDataType(Boolean useDataType)
setUseDataType in interface org.apache.camel.CamelContextpublic Boolean isUseBreadcrumb()
isUseBreadcrumb in interface org.apache.camel.CamelContextpublic void setUseBreadcrumb(Boolean useBreadcrumb)
setUseBreadcrumb in interface org.apache.camel.CamelContextpublic ClassLoader getApplicationContextClassLoader()
getApplicationContextClassLoader in interface org.apache.camel.CamelContextpublic void setApplicationContextClassLoader(ClassLoader classLoader)
setApplicationContextClassLoader in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.DataFormatResolver getDataFormatResolver()
getDataFormatResolver in interface org.apache.camel.ExtendedCamelContextpublic void setDataFormatResolver(org.apache.camel.spi.DataFormatResolver dataFormatResolver)
setDataFormatResolver in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.DataFormat resolveDataFormat(String name)
resolveDataFormat in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.DataFormat createDataFormat(String name)
createDataFormat in interface org.apache.camel.CamelContextprotected static <T> T lookup(org.apache.camel.CamelContext context,
String ref,
Class<T> type)
public org.apache.camel.spi.ShutdownStrategy getShutdownStrategy()
getShutdownStrategy in interface org.apache.camel.CamelContextpublic void setShutdownStrategy(org.apache.camel.spi.ShutdownStrategy shutdownStrategy)
setShutdownStrategy in interface org.apache.camel.CamelContextpublic org.apache.camel.ShutdownRoute getShutdownRoute()
getShutdownRoute in interface org.apache.camel.RuntimeConfigurationpublic void setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)
setShutdownRoute in interface org.apache.camel.RuntimeConfigurationpublic org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
getShutdownRunningTask in interface org.apache.camel.RuntimeConfigurationpublic void setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
setShutdownRunningTask in interface org.apache.camel.RuntimeConfigurationpublic void setAllowUseOriginalMessage(Boolean allowUseOriginalMessage)
setAllowUseOriginalMessage in interface org.apache.camel.RuntimeConfigurationpublic Boolean isAllowUseOriginalMessage()
isAllowUseOriginalMessage in interface org.apache.camel.RuntimeConfigurationpublic org.apache.camel.spi.ExecutorServiceManager getExecutorServiceManager()
getExecutorServiceManager in interface org.apache.camel.CamelContextpublic void setExecutorServiceManager(org.apache.camel.spi.ExecutorServiceManager executorServiceManager)
setExecutorServiceManager in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ProcessorFactory getProcessorFactory()
getProcessorFactory in interface org.apache.camel.ExtendedCamelContextpublic void setProcessorFactory(org.apache.camel.spi.ProcessorFactory processorFactory)
setProcessorFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.MessageHistoryFactory getMessageHistoryFactory()
getMessageHistoryFactory in interface org.apache.camel.CamelContextpublic void setMessageHistoryFactory(org.apache.camel.spi.MessageHistoryFactory messageHistoryFactory)
setMessageHistoryFactory in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.Debugger getDebugger()
getDebugger in interface org.apache.camel.CamelContextpublic void setDebugger(org.apache.camel.spi.Debugger debugger)
setDebugger in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.Tracer getTracer()
getTracer in interface org.apache.camel.CamelContextpublic void setTracer(org.apache.camel.spi.Tracer tracer)
setTracer in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.UuidGenerator getUuidGenerator()
getUuidGenerator in interface org.apache.camel.CamelContextpublic void setUuidGenerator(org.apache.camel.spi.UuidGenerator uuidGenerator)
setUuidGenerator in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.StreamCachingStrategy getStreamCachingStrategy()
getStreamCachingStrategy in interface org.apache.camel.CamelContextpublic void setStreamCachingStrategy(org.apache.camel.spi.StreamCachingStrategy streamCachingStrategy)
setStreamCachingStrategy in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.RestRegistry getRestRegistry()
getRestRegistry in interface org.apache.camel.CamelContextpublic void setRestRegistry(org.apache.camel.spi.RestRegistry restRegistry)
setRestRegistry in interface org.apache.camel.CamelContextprotected org.apache.camel.spi.RestRegistry createRestRegistry()
public org.apache.camel.spi.RestRegistryFactory getRestRegistryFactory()
public void setRestRegistryFactory(org.apache.camel.spi.RestRegistryFactory restRegistryFactory)
public String getGlobalOption(String key)
getGlobalOption in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.Transformer resolveTransformer(String scheme)
resolveTransformer in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.Transformer resolveTransformer(org.apache.camel.spi.DataType from,
org.apache.camel.spi.DataType to)
resolveTransformer in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.TransformerRegistry<TransformerKey> getTransformerRegistry()
getTransformerRegistry in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.Validator resolveValidator(org.apache.camel.spi.DataType type)
resolveValidator in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ValidatorRegistry<ValidatorKey> getValidatorRegistry()
getValidatorRegistry in interface org.apache.camel.CamelContextpublic void setSSLContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
setSSLContextParameters in interface org.apache.camel.CamelContextpublic org.apache.camel.support.jsse.SSLContextParameters getSSLContextParameters()
getSSLContextParameters in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.HeadersMapFactory getHeadersMapFactory()
getHeadersMapFactory in interface org.apache.camel.CamelContextpublic void setHeadersMapFactory(org.apache.camel.spi.HeadersMapFactory headersMapFactory)
setHeadersMapFactory in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ReactiveExecutor getReactiveExecutor()
getReactiveExecutor in interface org.apache.camel.CamelContextpublic void setReactiveExecutor(org.apache.camel.spi.ReactiveExecutor reactiveExecutor)
setReactiveExecutor in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.DeferServiceFactory getDeferServiceFactory()
getDeferServiceFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.AnnotationBasedProcessorFactory getAnnotationBasedProcessorFactory()
getAnnotationBasedProcessorFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.BeanProxyFactory getBeanProxyFactory()
getBeanProxyFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.BeanProcessorFactory getBeanProcessorFactory()
getBeanProcessorFactory in interface org.apache.camel.ExtendedCamelContextprotected Map<String,BaseRouteService> getRouteServices()
public static void setContextCounter(int value)
value - new value for the context counterprotected abstract org.apache.camel.spi.ReactiveExecutor createReactiveExecutor()
protected abstract org.apache.camel.spi.StreamCachingStrategy createStreamCachingStrategy()
protected abstract org.apache.camel.TypeConverter createTypeConverter()
protected abstract org.apache.camel.spi.TypeConverterRegistry createTypeConverterRegistry()
protected abstract org.apache.camel.spi.Injector createInjector()
protected abstract org.apache.camel.spi.PropertiesComponent createPropertiesComponent()
protected abstract org.apache.camel.spi.CamelBeanPostProcessor createBeanPostProcessor()
protected abstract org.apache.camel.spi.ComponentResolver createComponentResolver()
protected abstract org.apache.camel.spi.Registry createRegistry()
protected abstract org.apache.camel.spi.UuidGenerator createUuidGenerator()
protected abstract org.apache.camel.spi.ModelJAXBContextFactory createModelJAXBContextFactory()
protected abstract org.apache.camel.spi.NodeIdFactory createNodeIdFactory()
protected abstract org.apache.camel.spi.FactoryFinderResolver createFactoryFinderResolver()
protected abstract org.apache.camel.spi.ClassResolver createClassResolver()
protected abstract org.apache.camel.spi.ProcessorFactory createProcessorFactory()
protected abstract org.apache.camel.spi.DataFormatResolver createDataFormatResolver()
protected abstract org.apache.camel.spi.MessageHistoryFactory createMessageHistoryFactory()
protected abstract org.apache.camel.spi.InflightRepository createInflightRepository()
protected abstract org.apache.camel.spi.AsyncProcessorAwaitManager createAsyncProcessorAwaitManager()
protected abstract org.apache.camel.spi.RouteController createRouteController()
protected abstract org.apache.camel.spi.ShutdownStrategy createShutdownStrategy()
protected abstract org.apache.camel.spi.PackageScanClassResolver createPackageScanClassResolver()
protected abstract org.apache.camel.spi.PackageScanResourceResolver createPackageScanResourceResolver()
protected abstract org.apache.camel.spi.ExecutorServiceManager createExecutorServiceManager()
protected abstract ServicePool<org.apache.camel.Producer> createProducerServicePool()
protected abstract ServicePool<org.apache.camel.PollingConsumer> createPollingConsumerServicePool()
protected abstract org.apache.camel.spi.UnitOfWorkFactory createUnitOfWorkFactory()
protected abstract org.apache.camel.spi.CamelContextNameStrategy createCamelContextNameStrategy()
protected abstract org.apache.camel.spi.ManagementNameStrategy createManagementNameStrategy()
protected abstract org.apache.camel.spi.HeadersMapFactory createHeadersMapFactory()
protected abstract org.apache.camel.spi.BeanProxyFactory createBeanProxyFactory()
protected abstract org.apache.camel.spi.BeanProcessorFactory createBeanProcessorFactory()
protected abstract org.apache.camel.spi.BeanIntrospection createBeanIntrospection()
protected abstract org.apache.camel.spi.Tracer createTracer()
protected abstract org.apache.camel.spi.LanguageResolver createLanguageResolver()
protected abstract org.apache.camel.spi.RestRegistryFactory createRestRegistryFactory()
protected abstract org.apache.camel.spi.EndpointRegistry<EndpointKey> createEndpointRegistry(Map<EndpointKey,org.apache.camel.Endpoint> endpoints)
protected abstract org.apache.camel.spi.TransformerRegistry<TransformerKey> createTransformerRegistry() throws Exception
Exceptionprotected abstract org.apache.camel.spi.ValidatorRegistry<ValidatorKey> createValidatorRegistry() throws Exception
ExceptionApache Camel