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 . |
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. |
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. |
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. |
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
|
List<InterceptStrategy> |
getInterceptStrategies()
Gets the interceptor strategies
|
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.
|
NodeIdFactory |
getNodeIdFactory()
Gets the node id factory
|
PackageScanClassResolver |
getPackageScanClassResolver()
Returns the package scanning class resolver
|
ProcessorFactory |
getProcessorFactory()
Gets the current
ProcessorFactory |
List<RouteStartupOrder> |
getRouteStartupOrder()
Returns the order in which the route inputs was started.
|
UnitOfWorkFactory |
getUnitOfWorkFactory()
Gets the
UnitOfWorkFactory to use. |
boolean |
isSetupRoutes()
Indicates whether current thread is setting up route(s) as part of starting Camel from spring/blueprint.
|
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 |
setAsyncProcessorAwaitManager(AsyncProcessorAwaitManager manager)
Sets a custom
AsyncProcessor await manager. |
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 |
setFactoryFinderResolver(FactoryFinderResolver resolver)
Sets the factory finder resolver to use.
|
void |
setModelJAXBContextFactory(ModelJAXBContextFactory modelJAXBContextFactory)
Sets a custom JAXB Context factory to be used
|
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 |
setProcessorFactory(ProcessorFactory processorFactory)
Sets a custom
ProcessorFactory |
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. |
adapt, addComponent, addEndpoint, addLifecycleStrategy, addRestConfiguration, 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, getEndpointMap, getEndpointRegistry, getEndpoints, getExecutorServiceManager, getExtension, getGlobalOption, getGlobalOptions, getHeadersMapFactory, getInflightRepository, getInjector, getLanguageNames, getLifecycleStrategies, getManagementName, getManagementNameStrategy, getManagementStrategy, getMessageHistoryFactory, getName, getNameStrategy, getProcessor, getProcessor, getPropertiesComponent, getPropertiesComponent, getPropertyPrefixToken, getPropertySuffixToken, getRegistry, getRegistry, getReloadStrategy, getRestConfiguration, getRestConfiguration, getRestConfigurations, getRestRegistry, getRoute, getRouteController, getRoutePolicyFactories, getRoutes, getRuntimeEndpointRegistry, getShutdownStrategy, getSSLContextParameters, getStatus, getStreamCachingStrategy, 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, setHeadersMapFactory, setInflightRepository, setLoadTypeConverters, setManagementName, setManagementNameStrategy, setManagementStrategy, setMessageHistoryFactory, setNameStrategy, setReloadStrategy, setRestConfiguration, setRestRegistry, setRouteController, setRuntimeEndpointRegistry, setShutdownStrategy, setSSLContextParameters, setStreamCachingStrategy, setTypeConverterRegistry, setTypeConverterStatisticsEnabled, setUseBreadcrumb, setUseDataType, setUseMDCLogging, setUuidGenerator, start, stop
isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
isSuspended, resume, suspend
shutdown
getDelayer, getShutdownRoute, getShutdownRunningTask, isAllowUseOriginalMessage, isAutoStartup, isDebugging, isHandleFault, isLogExhaustedMessageBody, isLogMask, isMessageHistory, isStreamCaching, isTracing, setAllowUseOriginalMessage, setAutoStartup, setDebugging, setDelayer, setHandleFault, setLogExhaustedMessageBody, setLogMask, setMessageHistory, setShutdownRoute, setShutdownRunningTask, setStreamCaching, setTracing
void 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 invokedList<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()
DataFormatResolver getDataFormatResolver()
void setDataFormatResolver(DataFormatResolver dataFormatResolver)
dataFormatResolver
- the resolverPackageScanClassResolver getPackageScanClassResolver()
void setPackageScanClassResolver(PackageScanClassResolver resolver)
resolver
- the resolverFactoryFinder getDefaultFactoryFinder()
FactoryFinder getFactoryFinder(String path) throws NoFactoryAvailableException
path
- the META-INF pathNoFactoryAvailableException
- is thrown if a factory could not be foundvoid 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 managerApache Camel