public interface ExtendedCamelContext extends CamelContext
CamelContext
which contains the methods and APIs that are not primary intended for Camel end users
but for SPI, custom components, or more advanced used-cases with Camel.Modifier and Type | Method and Description |
---|---|
void |
addInterceptStrategy(InterceptStrategy interceptStrategy)
Adds the given interceptor strategy
|
void |
addLogListener(LogListener listener)
Adds a
LogListener . |
void |
addRoute(Route route)
Internal API for adding routes.
|
Processor |
createErrorHandler(Route route,
Processor processor)
Internal API for creating error handler.
|
AsyncProcessor |
createMulticast(Collection<Processor> processors,
ExecutorService executor,
boolean shutdownExecutorService)
Creates a new multicast processor which sends an exchange to all the processors.
|
AnnotationBasedProcessorFactory |
getAnnotationBasedProcessorFactory()
Gets the
AnnotationBasedProcessorFactory to use. |
AsyncProcessorAwaitManager |
getAsyncProcessorAwaitManager()
Gets the
AsyncProcessor await manager. |
BeanIntrospection |
getBeanIntrospection()
Gets the
BeanIntrospection |
CamelBeanPostProcessor |
getBeanPostProcessor()
Returns the bean post processor used to do any bean customization.
|
BeanProcessorFactory |
getBeanProcessorFactory()
Gets the
BeanProcessorFactory to use. |
BeanProxyFactory |
getBeanProxyFactory()
Gets the
BeanProxyFactory to use. |
ComponentNameResolver |
getComponentNameResolver()
Gets the
ComponentNameResolver to use. |
ComponentResolver |
getComponentResolver()
Gets the
ComponentResolver to use. |
ConfigurerResolver |
getConfigurerResolver()
Gets the
ConfigurerResolver to use. |
DataFormatResolver |
getDataFormatResolver()
Gets the current data format resolver
|
FactoryFinder |
getDefaultFactoryFinder()
Gets the default FactoryFinder which will be used for the loading the factory class from META-INF
|
DeferServiceFactory |
getDeferServiceFactory()
Gets the
DeferServiceFactory to use. |
Endpoint |
getEndpoint(NormalizedEndpointUri uri)
Resolves the given name to an
Endpoint of the specified type. |
Endpoint |
getEndpoint(NormalizedEndpointUri uri,
Map<String,Object> parameters)
Resolves the given name to an
Endpoint of the specified type. |
ScheduledExecutorService |
getErrorHandlerExecutorService()
Gets the default shared thread pool for error handlers which leverages this for asynchronous redelivery tasks.
|
ErrorHandlerFactory |
getErrorHandlerFactory()
Gets the default error handler builder which is inherited by the routes
|
FactoryFinder |
getFactoryFinder(String path)
Gets the FactoryFinder which will be used for the loading the factory class from META-INF in the given path
|
FactoryFinderResolver |
getFactoryFinderResolver()
Gets the factory finder resolver to use
|
HeadersMapFactory |
getHeadersMapFactory()
Gets the
HeadersMapFactory to use. |
List<InterceptStrategy> |
getInterceptStrategies()
Gets the interceptor strategies
|
RouteController |
getInternalRouteController()
Internal
RouteController that are only used internally by Camel to perform basic route operations. |
LanguageResolver |
getLanguageResolver()
Gets the
LanguageResolver to use. |
Set<LogListener> |
getLogListeners()
Gets a list of
LogListener . |
ManagementMBeanAssembler |
getManagementMBeanAssembler()
Returns the management mbean assembler
|
ModelJAXBContextFactory |
getModelJAXBContextFactory()
Returns the JAXB Context factory used to create Models.
|
ModelToXMLDumper |
getModelToXMLDumper()
Gets the
ModelToXMLDumper to be used. |
NodeIdFactory |
getNodeIdFactory()
Gets the node id factory
|
PackageScanClassResolver |
getPackageScanClassResolver()
Returns the package scanning class resolver
|
PackageScanResourceResolver |
getPackageScanResourceResolver()
Returns the package scanning resource resolver
|
ProcessorFactory |
getProcessorFactory()
Gets the current
ProcessorFactory |
Endpoint |
getPrototypeEndpoint(NormalizedEndpointUri uri)
Resolves the given name to an
Endpoint of the specified type (scope is prototype). |
Endpoint |
getPrototypeEndpoint(String uri)
Resolves the given name to an
Endpoint of the specified type (scope is prototype). |
ReactiveExecutor |
getReactiveExecutor()
Gets the
ReactiveExecutor to use. |
RestBindingJaxbDataFormatFactory |
getRestBindingJaxbDataFormatFactory()
Gets the
RestBindingJaxbDataFormatFactory to be used. |
List<RouteStartupOrder> |
getRouteStartupOrder()
Returns the order in which the route inputs was started.
|
RuntimeCamelCatalog |
getRuntimeCamelCatalog()
Gets the
RuntimeCamelCatalog if available on the classpath. |
UnitOfWorkFactory |
getUnitOfWorkFactory()
Gets the
UnitOfWorkFactory to use. |
XMLRoutesDefinitionLoader |
getXMLRoutesDefinitionLoader()
Gets the
XMLRoutesDefinitionLoader to be used. |
Endpoint |
hasEndpoint(NormalizedEndpointUri uri)
Is the given endpoint already registered in the
EndpointRegistry |
boolean |
isEventNotificationApplicable()
Whether event notification is applicable (possible).
|
boolean |
isSetupRoutes()
Indicates whether current thread is setting up route(s) as part of starting Camel from spring/blueprint.
|
NormalizedEndpointUri |
normalizeUri(String uri)
Normalizes the given uri.
|
void |
registerEndpointCallback(EndpointStrategy strategy)
Registers a
callback to allow you to do custom logic when an
Endpoint is about to be registered to the EndpointRegistry . |
void |
removeRoute(Route route)
Internal API for removing routes.
|
void |
setAsyncProcessorAwaitManager(AsyncProcessorAwaitManager manager)
Sets a custom
AsyncProcessor await manager. |
void |
setBeanIntrospection(BeanIntrospection beanIntrospection)
Sets a custom
BeanIntrospection . |
void |
setComponentNameResolver(ComponentNameResolver componentNameResolver)
Sets a custom
ComponentNameResolver to use. |
void |
setComponentResolver(ComponentResolver componentResolver)
Sets a custom
ComponentResolver to use. |
void |
setConfigurerResolver(ConfigurerResolver configurerResolver)
Sets the
ConfigurerResolver to use. |
void |
setDataFormatResolver(DataFormatResolver dataFormatResolver)
Sets a custom data format resolver
|
void |
setErrorHandlerFactory(ErrorHandlerFactory errorHandlerFactory)
Sets the default error handler builder which is inherited by the routes
|
void |
setEventNotificationApplicable(boolean eventNotificationApplicable)
Used as internal optimization in Camel to flag whether event notification is applicable or not.
|
void |
setFactoryFinderResolver(FactoryFinderResolver resolver)
Sets the factory finder resolver to use.
|
void |
setHeadersMapFactory(HeadersMapFactory factory)
Sets a custom
HeadersMapFactory to be used. |
void |
setLanguageResolver(LanguageResolver languageResolver)
Sets a custom
LanguageResolver to use. |
void |
setModelJAXBContextFactory(ModelJAXBContextFactory modelJAXBContextFactory)
Sets a custom JAXB Context factory to be used
|
void |
setModelToXMLDumper(ModelToXMLDumper modelToXMLDumper)
Sets a custom
ModelToXMLDumper to be used. |
void |
setName(String name)
Sets the name (id) of the this context.
|
void |
setNodeIdFactory(NodeIdFactory factory)
Uses a custom node id factory when generating auto assigned ids to the nodes in the route definitions
|
void |
setPackageScanClassResolver(PackageScanClassResolver resolver)
Sets the package scanning class resolver to use
|
void |
setPackageScanResourceResolver(PackageScanResourceResolver resolver)
Sets the package scanning resource resolver to use
|
void |
setProcessorFactory(ProcessorFactory processorFactory)
Sets a custom
ProcessorFactory |
void |
setReactiveExecutor(ReactiveExecutor reactiveExecutor)
Sets a custom
ReactiveExecutor to be used. |
void |
setRegistry(Registry registry)
Sets the registry Camel should use for looking up beans by name or type.
|
void |
setRestBindingJaxbDataFormatFactory(RestBindingJaxbDataFormatFactory restBindingJaxbDataFormatFactory)
Sets a custom
RestBindingJaxbDataFormatFactory to be used. |
void |
setRuntimeCamelCatalog(RuntimeCamelCatalog runtimeCamelCatalog)
Sets the
RuntimeCamelCatalog to use. |
void |
setUnitOfWorkFactory(UnitOfWorkFactory unitOfWorkFactory)
Sets a custom
UnitOfWorkFactory to use. |
void |
setupManagement(Map<String,Object> options)
Setup management according to whether JMX is enabled or disabled.
|
void |
setupRoutes(boolean done)
Method to signal to
CamelContext that the process to initialize setup routes is in progress. |
void |
setXMLRoutesDefinitionLoader(XMLRoutesDefinitionLoader xmlRoutesDefinitionLoader)
Sets a custom
XMLRoutesDefinitionLoader to be used. |
adapt, addComponent, addEndpoint, addLifecycleStrategy, addPrototypeService, addRouteFromTemplate, addRoutePolicyFactory, addRoutes, addService, addService, addService, addStartupListener, createConsumerTemplate, createConsumerTemplate, createDataFormat, createFluentProducerTemplate, createFluentProducerTemplate, createProducerTemplate, createProducerTemplate, deferStartService, disableJMX, getApplicationContextClassLoader, getClassResolver, getComponent, getComponent, getComponent, getComponent, getComponentNames, getDebugger, getEndpoint, getEndpoint, getEndpoint, getEndpointMap, getEndpointRegistry, getEndpoints, getExecutorServiceManager, getExtension, getGlobalEndpointConfiguration, getGlobalOption, getGlobalOptions, getInflightRepository, getInjector, getLanguageNames, getLifecycleStrategies, getManagementName, getManagementNameStrategy, getManagementStrategy, getMDCLoggingKeysPattern, getMessageHistoryFactory, getName, getNameStrategy, getProcessor, getProcessor, getPropertiesComponent, getRegistry, getRegistry, getRestConfiguration, getRestRegistry, getRoute, getRouteController, getRoutePolicyFactories, getRoutes, getRoutesSize, getRuntimeEndpointRegistry, getShutdownStrategy, getSSLContextParameters, getStartDate, getStreamCachingStrategy, getTracer, getTransformerRegistry, getTypeConverter, getTypeConverterRegistry, getUptime, getUptimeMillis, getUuidGenerator, getValidatorRegistry, getVersion, hasComponent, hasEndpoint, hasService, hasService, hasServices, isLoadTypeConverters, isTypeConverterStatisticsEnabled, isUseBreadcrumb, isUseDataType, isUseMDCLogging, isVetoStarted, removeComponent, removeEndpoint, removeEndpoints, removeRoute, removeService, resolveDataFormat, resolveLanguage, resolvePropertyPlaceholders, resolveTransformer, resolveTransformer, resolveValidator, setApplicationContextClassLoader, setClassResolver, setDebugger, setExecutorServiceManager, setExtension, setGlobalOptions, setInflightRepository, setInjector, setLoadTypeConverters, setManagementName, setManagementNameStrategy, setManagementStrategy, setMDCLoggingKeysPattern, setMessageHistoryFactory, setNameStrategy, setPropertiesComponent, setRestConfiguration, setRestRegistry, setRouteController, setRuntimeEndpointRegistry, setShutdownStrategy, setSSLContextParameters, setStreamCachingStrategy, setTracer, setTypeConverterRegistry, setTypeConverterStatisticsEnabled, setUseBreadcrumb, setUseDataType, setUseMDCLogging, setUuidGenerator
build, close, getStatus, init, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
getDelayer, getShutdownRoute, getShutdownRunningTask, getTracingPattern, isAllowUseOriginalMessage, isAutoStartup, isBacklogTracing, isCaseInsensitiveHeaders, isDebugging, isLogExhaustedMessageBody, isLogMask, isMessageHistory, isStreamCaching, isTracing, setAllowUseOriginalMessage, setAutoStartup, setBacklogTracing, setCaseInsensitiveHeaders, setDebugging, setDelayer, setLogExhaustedMessageBody, setLogMask, setMessageHistory, setShutdownRoute, setShutdownRunningTask, setStreamCaching, setTracing, setTracingPattern
void setName(String name)
name
- the namevoid setRegistry(Registry registry)
registry
- the registry such as DefaultRegistry orvoid setupRoutes(boolean done)
CamelContext
that the process to initialize setup routes is in progress.done
- false to start the process, call again with true to signal its done.isSetupRoutes()
boolean isSetupRoutes()
LifecycleStrategy
or the likes, in case they need to react differently.
As the startup procedure of CamelContext
is slightly different when using plain Java versus Spring or
Blueprint, then we need to know when Spring/Blueprint is setting up the routes, which can happen after the
CamelContext
itself is in started state, due the asynchronous event nature of especially Blueprint.void registerEndpointCallback(EndpointStrategy strategy)
callback
to allow you to do custom logic when an
Endpoint
is about to be registered to the EndpointRegistry
.
When a callback is registered it will be executed on the already registered endpoints allowing you to catch-upstrategy
- callback to be invokedEndpoint getPrototypeEndpoint(String uri)
Endpoint
of the specified type (scope is prototype). If the name has a
singleton endpoint registered, then the singleton is returned. Otherwise, a new Endpoint
is created.
The endpoint is NOT registered in the EndpointRegistry
as its prototype scoped, and
therefore expected to be short lived and discarded after use (you must stop and shutdown the endpoint when no
longer in use).uri
- the URI of the endpointCamelContext.getEndpoint(String)
Endpoint getPrototypeEndpoint(NormalizedEndpointUri uri)
Endpoint
of the specified type (scope is prototype). If the name has a
singleton endpoint registered, then the singleton is returned. Otherwise, a new Endpoint
is created.
The endpoint is NOT registered in the EndpointRegistry
as its prototype scoped, and
therefore expected to be short lived and discarded after use (you must stop and shutdown the endpoint when no
longer in use).uri
- the URI of the endpointCamelContext.getEndpoint(String)
Endpoint hasEndpoint(NormalizedEndpointUri uri)
EndpointRegistry
uri
- the URI of the endpointEndpoint getEndpoint(NormalizedEndpointUri uri)
Endpoint
of the specified type. If the name has a singleton endpoint
registered, then the singleton is returned. Otherwise, a new Endpoint
is created and registered in the
EndpointRegistry
.uri
- the URI of the endpointgetPrototypeEndpoint(String)
Endpoint getEndpoint(NormalizedEndpointUri uri, Map<String,Object> parameters)
Endpoint
of the specified type. If the name has a singleton endpoint
registered, then the singleton is returned. Otherwise, a new Endpoint
is created and registered in the
EndpointRegistry
.uri
- the URI of the endpointparameters
- the parameters to customize the endpointgetPrototypeEndpoint(String)
NormalizedEndpointUri normalizeUri(String uri)
uri
- the uriList<RouteStartupOrder> getRouteStartupOrder()
CamelBeanPostProcessor getBeanPostProcessor()
ManagementMBeanAssembler getManagementMBeanAssembler()
AsyncProcessor createMulticast(Collection<Processor> processors, ExecutorService executor, boolean shutdownExecutorService)
processors
- the list of processors to send toexecutor
- the executor to useErrorHandlerFactory getErrorHandlerFactory()
void setErrorHandlerFactory(ErrorHandlerFactory errorHandlerFactory)
errorHandlerFactory
- the buildervoid setNodeIdFactory(NodeIdFactory factory)
factory
- custom factory to useNodeIdFactory getNodeIdFactory()
ComponentResolver getComponentResolver()
ComponentResolver
to use.void setComponentResolver(ComponentResolver componentResolver)
ComponentResolver
to use.ComponentNameResolver getComponentNameResolver()
ComponentNameResolver
to use.void setComponentNameResolver(ComponentNameResolver componentNameResolver)
ComponentNameResolver
to use.LanguageResolver getLanguageResolver()
LanguageResolver
to use.void setLanguageResolver(LanguageResolver languageResolver)
LanguageResolver
to use.DataFormatResolver getDataFormatResolver()
void setDataFormatResolver(DataFormatResolver dataFormatResolver)
dataFormatResolver
- the resolverPackageScanClassResolver getPackageScanClassResolver()
void setPackageScanClassResolver(PackageScanClassResolver resolver)
resolver
- the resolverPackageScanResourceResolver getPackageScanResourceResolver()
void setPackageScanResourceResolver(PackageScanResourceResolver resolver)
resolver
- the resolverFactoryFinder getDefaultFactoryFinder()
FactoryFinder getFactoryFinder(String path)
path
- the META-INF pathvoid setFactoryFinderResolver(FactoryFinderResolver resolver)
resolver
- the factory finder resolverFactoryFinderResolver getFactoryFinderResolver()
ProcessorFactory getProcessorFactory()
ProcessorFactory
void setProcessorFactory(ProcessorFactory processorFactory)
ProcessorFactory
processorFactory
- the custom factoryModelJAXBContextFactory getModelJAXBContextFactory()
void setModelJAXBContextFactory(ModelJAXBContextFactory modelJAXBContextFactory)
modelJAXBContextFactory
- a JAXB Context factoryDeferServiceFactory getDeferServiceFactory()
DeferServiceFactory
to use.UnitOfWorkFactory getUnitOfWorkFactory()
UnitOfWorkFactory
to use.void setUnitOfWorkFactory(UnitOfWorkFactory unitOfWorkFactory)
UnitOfWorkFactory
to use.AnnotationBasedProcessorFactory getAnnotationBasedProcessorFactory()
AnnotationBasedProcessorFactory
to use.BeanProxyFactory getBeanProxyFactory()
BeanProxyFactory
to use.BeanProcessorFactory getBeanProcessorFactory()
BeanProcessorFactory
to use.ScheduledExecutorService getErrorHandlerExecutorService()
void addInterceptStrategy(InterceptStrategy interceptStrategy)
interceptStrategy
- the strategyList<InterceptStrategy> getInterceptStrategies()
void setupManagement(Map<String,Object> options)
options
- optional parameters to configure ManagementAgent
.Set<LogListener> getLogListeners()
LogListener
.void addLogListener(LogListener listener)
LogListener
.AsyncProcessorAwaitManager getAsyncProcessorAwaitManager()
AsyncProcessor
await manager.void setAsyncProcessorAwaitManager(AsyncProcessorAwaitManager manager)
AsyncProcessor
await manager.manager
- the managerBeanIntrospection getBeanIntrospection()
BeanIntrospection
void setBeanIntrospection(BeanIntrospection beanIntrospection)
BeanIntrospection
.HeadersMapFactory getHeadersMapFactory()
HeadersMapFactory
to use.void setHeadersMapFactory(HeadersMapFactory factory)
HeadersMapFactory
to be used.ReactiveExecutor getReactiveExecutor()
ReactiveExecutor
to use.void setReactiveExecutor(ReactiveExecutor reactiveExecutor)
ReactiveExecutor
to be used.boolean isEventNotificationApplicable()
void setEventNotificationApplicable(boolean eventNotificationApplicable)
void setXMLRoutesDefinitionLoader(XMLRoutesDefinitionLoader xmlRoutesDefinitionLoader)
XMLRoutesDefinitionLoader
to be used.XMLRoutesDefinitionLoader getXMLRoutesDefinitionLoader()
XMLRoutesDefinitionLoader
to be used.void setModelToXMLDumper(ModelToXMLDumper modelToXMLDumper)
ModelToXMLDumper
to be used.ModelToXMLDumper getModelToXMLDumper()
ModelToXMLDumper
to be used.void setRestBindingJaxbDataFormatFactory(RestBindingJaxbDataFormatFactory restBindingJaxbDataFormatFactory)
RestBindingJaxbDataFormatFactory
to be used.RestBindingJaxbDataFormatFactory getRestBindingJaxbDataFormatFactory()
RestBindingJaxbDataFormatFactory
to be used.RuntimeCamelCatalog getRuntimeCamelCatalog()
RuntimeCamelCatalog
if available on the classpath.void setRuntimeCamelCatalog(RuntimeCamelCatalog runtimeCamelCatalog)
RuntimeCamelCatalog
to use.ConfigurerResolver getConfigurerResolver()
ConfigurerResolver
to use.void setConfigurerResolver(ConfigurerResolver configurerResolver)
ConfigurerResolver
to use.RouteController getInternalRouteController()
RouteController
that are only used internally by Camel to perform basic route operations. Do not
use this as end user.void addRoute(Route route)
void removeRoute(Route route)
Apache Camel