Package org.apache.camel
Interface ExtendedCamelContext
public interface ExtendedCamelContext
Extended
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.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBootstrap
(BootstrapCloseable bootstrap) Adds aBootstrapCloseable
task.void
addInterceptStrategy
(InterceptStrategy interceptStrategy) Adds the given interceptor strategyvoid
addLogListener
(LogListener listener) Adds aLogListener
.void
Internal API for adding routes.createErrorHandler
(Route route, Processor processor) Internal API for creating error handler.void
Danger!!! This will dispose the route model from theCamelContext
which is used for lightweight mode.Gets theAnnotationBasedProcessorFactory
to use.Gets theAsyncProcessor
await manager.Package name to use as base (offset) for classpath scanning of customCamelConfiguration
,Configuration
, andTypeConverter
.Gets theBeanIntrospection
Returns the bean post processor used to do any bean customization.Gets theBeanProcessorFactory
to use.Gets theBeanProxyFactory
to use.Gets the bootstrapConfigurerResolver
to use.Gets the bootstrap FactoryFinder which will be used for the loading the factory class from META-INF.Gets the bootstrap FactoryFinder which will be used for the loading the factory class from META-INF in the given path.Gets theCliConnectorFactory
(optional).Gets theComponentNameResolver
to use.Gets theComponentResolver
to use.Gets theConfigurerResolver
to use.Gets the current data format resolverGets the default FactoryFinder which will be used for the loading the factory class from META-INFGets theDeferServiceFactory
to use.Returns the annotation dependency injection factory.default String
Gets the current dev console resolverResolves the given name to anEndpoint
of the specified type.getEndpoint
(NormalizedEndpointUri uri, Map<String, Object> parameters) Resolves the given name to anEndpoint
of the specified type.getEndpointUriFactory
(String scheme) Gets theEndpointUriFactory
for the given component name.Gets the default shared thread pool for error handlers which leverages this for asynchronous redelivery tasks.Gets the default error handler builder which is inherited by the routesGets the exchange factory to use.Gets the exchange factory manager to use.getFactoryFinder
(String path) Gets the FactoryFinder which will be used for the loading the factory class from META-INF in the given pathGets the factory finder resolver to useGets theHeadersMapFactory
to use.Gets the current health check resolverGets the currentInterceptEndpointFactory
Gets the interceptor strategiesGets the currentInternalProcessorFactory
InternalRouteController
that are only used internally by Camel to perform basic route operations.Gets theLanguageResolver
to use.Gets a list ofLogListener
(can be null if empty).Returns the management mbean assemblerGets theModelineFactory
.Returns the JAXB Context factory used to create Models.Gets theModelToXMLDumper
to be used.default String
getName()
Gets the node id factoryReturns the package scanning class resolverReturns the package scanning resource resolverGets the period task resolverGets the period task schedulerGets the processor exchange factory to use.Gets the currentProcessorFactory
Resolves the given name to anEndpoint
of the specified type (scope is prototype).Resolves the given name to anEndpoint
of the specified type (scope is prototype).Gets theReactiveExecutor
to use.default Registry
Gets theResourceLoader
to be used.Gets theRestBindingJaxbDataFormatFactory
to be used.Gets the currentRouteFactory
Gets theRoutesLoader
to be used.Returns the order in which the route inputs was started.Gets theRuntimeCamelCatalog
if available on the classpath.Returns an unmodifiable list of the services registered currently in thisCamelContext
.Gets theStartupStepRecorder
to use.byte
TheCamelContext
have additional phases that are not defined inServiceStatus
and this method provides the phase ordinal value.Used during unit-testing where it is possible to specify a set of routes to exclude from discoveryGets theUnitOfWorkFactory
to use.Gets theUriFactoryResolver
to use.Is the given endpoint already registered in theEndpointRegistry
boolean
Whether exchange event notification is applicable (possible).boolean
Whether to run in lightweight mode which triggers some optimizations and memory reduction.boolean
Indicates whether current thread is setting up route(s) as part of starting Camel.normalizeUri
(String uri) Normalizes the given uri.void
registerEndpointCallback
(EndpointStrategy strategy) Registers acallback
to allow you to do custom logic when anEndpoint
is about to be registered to theEndpointRegistry
.void
removeRoute
(Route route) Internal API for removing routes.resolvePropertyPlaceholders
(String text, boolean keepUnresolvedOptional) Parses the given text and resolve any property placeholders - using {{key}}.void
setAnnotationBasedProcessorFactory
(AnnotationBasedProcessorFactory annotationBasedProcessorFactory) Sets a customAnnotationBasedProcessorFactory
to use.void
Sets a customAsyncProcessor
await manager.void
setBasePackageScan
(String basePackageScan) Package name to use as base (offset) for classpath scanning of customCamelConfiguration
,Configuration
, andTypeConverter
.void
setBeanIntrospection
(BeanIntrospection beanIntrospection) Sets a customBeanIntrospection
.void
setBeanPostProcessor
(CamelBeanPostProcessor beanPostProcessor) Sets a custom bean post processor to use.void
setBootstrapConfigurerResolver
(ConfigurerResolver configurerResolver) sets the bootstrapConfigurerResolver
to use.void
setBootstrapFactoryFinder
(FactoryFinder factoryFinder) Sets the bootstrap FactoryFinder which will be used for the loading the factory class from META-INF.void
setCliConnectorFactory
(CliConnectorFactory cliConnectorFactory) Sets theCliConnectorFactory
to use.void
setComponentNameResolver
(ComponentNameResolver componentNameResolver) Sets a customComponentNameResolver
to use.void
setComponentResolver
(ComponentResolver componentResolver) Sets a customComponentResolver
to use.void
setConfigurerResolver
(ConfigurerResolver configurerResolver) Sets theConfigurerResolver
to use.void
setDataFormatResolver
(DataFormatResolver dataFormatResolver) Sets a custom data format resolvervoid
setDeferServiceFactory
(DeferServiceFactory deferServiceFactory) Sets a customDeferServiceFactory
to use.void
Sets a custom annotation dependency injection factory.void
setDescription
(String description) Sets the description of this Camel application.void
setDevConsoleResolver
(DevConsoleResolver devConsoleResolver) Sets a custom dev console resolvervoid
setErrorHandlerFactory
(ErrorHandlerFactory errorHandlerFactory) Sets the default error handler builder which is inherited by the routesvoid
setEventNotificationApplicable
(boolean eventNotificationApplicable) Used as internal optimization in Camel to flag whether exchange event notification is applicable or not.void
setExchangeFactory
(ExchangeFactory exchangeFactory) Sets a custom exchange factory to use.void
setExchangeFactoryManager
(ExchangeFactoryManager exchangeFactoryManager) Sets a custom exchange factory manager to use.void
Sets the factory finder resolver to use.void
setHeadersMapFactory
(HeadersMapFactory factory) Sets a customHeadersMapFactory
to be used.void
setHealthCheckResolver
(HealthCheckResolver healthCheckResolver) Sets a custom health check resolvervoid
setInterceptEndpointFactory
(InterceptEndpointFactory interceptEndpointFactory) Sets a customInterceptEndpointFactory
void
setInternalProcessorFactory
(InternalProcessorFactory internalProcessorFactory) Sets a customInternalProcessorFactory
void
setLanguageResolver
(LanguageResolver languageResolver) Sets a customLanguageResolver
to use.void
setLightweight
(boolean lightweight) Whether to run in lightweight mode which triggers some optimizations and memory reduction.void
setModelineFactory
(ModelineFactory modelineFactory) Sets a customModelineFactory
.void
setModelJAXBContextFactory
(ModelJAXBContextFactory modelJAXBContextFactory) Sets a custom JAXB Context factory to be usedvoid
setModelToXMLDumper
(ModelToXMLDumper modelToXMLDumper) Sets a customModelToXMLDumper
to be used.void
Sets the name (id) of this context.void
setNodeIdFactory
(NodeIdFactory factory) Uses a custom node id factory when generating auto assigned ids to the nodes in the route definitionsvoid
Sets the package scanning class resolver to usevoid
Sets the package scanning resource resolver to usevoid
setPeriodTaskResolver
(PeriodTaskResolver periodTaskResolver) To use a custom period task resolvervoid
setPeriodTaskScheduler
(PeriodTaskScheduler periodTaskScheduler) To use a custom period task schedulervoid
setProcessorExchangeFactory
(ProcessorExchangeFactory processorExchangeFactory) Sets a custom processor exchange factory to use.void
setProcessorFactory
(ProcessorFactory processorFactory) Sets a customProcessorFactory
void
setReactiveExecutor
(ReactiveExecutor reactiveExecutor) Sets a customReactiveExecutor
to be used.void
setRegistry
(Registry registry) Sets the registry Camel should use for looking up beans by name or type.void
setResourceLoader
(ResourceLoader resourceLoader) Sets a customResourceLoader
to be used.void
setRestBindingJaxbDataFormatFactory
(RestBindingJaxbDataFormatFactory restBindingJaxbDataFormatFactory) Sets a customRestBindingJaxbDataFormatFactory
to be used.void
setRouteFactory
(RouteFactory routeFactory) Sets a customRouteFactory
void
setRoutesLoader
(RoutesLoader routesLoader) Sets a customRoutesLoader
to be used.void
setRuntimeCamelCatalog
(RuntimeCamelCatalog runtimeCamelCatalog) Sets theRuntimeCamelCatalog
to use.void
setStartupStepRecorder
(StartupStepRecorder startupStepRecorder) Sets theStartupStepRecorder
to use.void
setUnitOfWorkFactory
(UnitOfWorkFactory unitOfWorkFactory) Sets a customUnitOfWorkFactory
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 toCamelContext
that the process to initialize setup routes is in progress.void
setUriFactoryResolver
(UriFactoryResolver uriFactoryResolver) Sets theUriFactoryResolver
to use.
-
Method Details
-
setName
Sets the name (id) of this context. This operation is mostly only used by different Camel runtimes such as camel-spring, camel-cdi, camel-spring-boot etc. Important: Setting the name should only be set before CamelContext is started.- Parameters:
name
- the name
-
getName
-
setDescription
Sets the description of this Camel application. -
getDescription
-
setRegistry
Sets the registry Camel should use for looking up beans by name or type. This operation is mostly only used by different Camel runtimes such as camel-spring, camel-cdi, camel-spring-boot etc. Important: Setting the registry should only be set before CamelContext is started.- Parameters:
registry
- the registry such as DefaultRegistry or
-
getRegistry
-
setupRoutes
void setupRoutes(boolean done) Method to signal toCamelContext
that the process to initialize setup routes is in progress.- Parameters:
done
- false to start the process, call again with true to signal its done.- See Also:
-
isSetupRoutes
boolean isSetupRoutes()Indicates whether current thread is setting up route(s) as part of starting Camel. This can be useful to know byLifecycleStrategy
or the likes, in case they need to react differently. As the startup procedure ofCamelContext
is slightly different when using plain Java versus camel-spring-xml or camel-blueprint, then we need to know when spring/blueprint are setting up the routes, which can happen after theCamelContext
itself is in started state, due the asynchronous event nature of especially blueprint.- Returns:
- true if current thread is setting up route(s), or false if not.
-
registerEndpointCallback
Registers acallback
to allow you to do custom logic when anEndpoint
is about to be registered to theEndpointRegistry
. When a callback is registered it will be executed on the already registered endpoints allowing you to catch-up- Parameters:
strategy
- callback to be invoked
-
getPrototypeEndpoint
Resolves the given name to anEndpoint
of the specified type (scope is prototype). If the name has a singleton endpoint registered, then the singleton is returned. Otherwise, a newEndpoint
is created. The endpoint is NOT registered in theEndpointRegistry
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).- Parameters:
uri
- the URI of the endpoint- Returns:
- the endpoint
- See Also:
-
#getEndpoint(String)
-
getPrototypeEndpoint
Resolves the given name to anEndpoint
of the specified type (scope is prototype). If the name has a singleton endpoint registered, then the singleton is returned. Otherwise, a newEndpoint
is created. The endpoint is NOT registered in theEndpointRegistry
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).- Parameters:
uri
- the URI of the endpoint- Returns:
- the endpoint
- See Also:
-
#getEndpoint(String)
-
hasEndpoint
Is the given endpoint already registered in theEndpointRegistry
- Parameters:
uri
- the URI of the endpoint- Returns:
- the registered endpoint or null if not registered
-
getEndpoint
Resolves the given name to anEndpoint
of the specified type. If the name has a singleton endpoint registered, then the singleton is returned. Otherwise, a newEndpoint
is created and registered in theEndpointRegistry
.- Parameters:
uri
- the URI of the endpoint- Returns:
- the endpoint
- See Also:
-
getEndpoint
Resolves the given name to anEndpoint
of the specified type. If the name has a singleton endpoint registered, then the singleton is returned. Otherwise, a newEndpoint
is created and registered in theEndpointRegistry
.- Parameters:
uri
- the URI of the endpointparameters
- the parameters to customize the endpoint- Returns:
- the endpoint
- See Also:
-
normalizeUri
Normalizes the given uri.- Parameters:
uri
- the uri- Returns:
- a normalized uri
-
getRouteStartupOrder
List<RouteStartupOrder> getRouteStartupOrder()Returns the order in which the route inputs was started. The order may not be according to the startupOrder defined on the route. For example a route could be started manually later, or new routes added at runtime.- Returns:
- a list in the order how routes was started
-
addBootstrap
Adds aBootstrapCloseable
task. -
getServices
Returns an unmodifiable list of the services registered currently in thisCamelContext
. -
getExchangeFactory
ExchangeFactory getExchangeFactory()Gets the exchange factory to use. -
setExchangeFactory
Sets a custom exchange factory to use. -
getExchangeFactoryManager
ExchangeFactoryManager getExchangeFactoryManager()Gets the exchange factory manager to use. -
setExchangeFactoryManager
Sets a custom exchange factory manager to use. -
getProcessorExchangeFactory
ProcessorExchangeFactory getProcessorExchangeFactory()Gets the processor exchange factory to use. -
setProcessorExchangeFactory
Sets a custom processor exchange factory to use. -
getBeanPostProcessor
CamelBeanPostProcessor getBeanPostProcessor()Returns the bean post processor used to do any bean customization.- Returns:
- the bean post processor.
-
setBeanPostProcessor
Sets a custom bean post processor to use. -
getDependencyInjectionAnnotationFactory
CamelDependencyInjectionAnnotationFactory getDependencyInjectionAnnotationFactory()Returns the annotation dependency injection factory. -
setDependencyInjectionAnnotationFactory
Sets a custom annotation dependency injection factory. -
getManagementMBeanAssembler
ManagementMBeanAssembler getManagementMBeanAssembler()Returns the management mbean assembler- Returns:
- the mbean assembler
-
getErrorHandlerFactory
ErrorHandlerFactory getErrorHandlerFactory()Gets the default error handler builder which is inherited by the routes- Returns:
- the builder
-
setErrorHandlerFactory
Sets the default error handler builder which is inherited by the routes- Parameters:
errorHandlerFactory
- the builder
-
getNodeIdFactory
NodeIdFactory getNodeIdFactory()Gets the node id factory- Returns:
- the node id factory
-
setNodeIdFactory
Uses a custom node id factory when generating auto assigned ids to the nodes in the route definitions- Parameters:
factory
- custom factory to use
-
getComponentResolver
ComponentResolver getComponentResolver()Gets theComponentResolver
to use. -
setComponentResolver
Sets a customComponentResolver
to use. -
getComponentNameResolver
ComponentNameResolver getComponentNameResolver()Gets theComponentNameResolver
to use. -
setComponentNameResolver
Sets a customComponentNameResolver
to use. -
getLanguageResolver
LanguageResolver getLanguageResolver()Gets theLanguageResolver
to use. -
setLanguageResolver
Sets a customLanguageResolver
to use. -
getDataFormatResolver
DataFormatResolver getDataFormatResolver()Gets the current data format resolver- Returns:
- the resolver
-
setDataFormatResolver
Sets a custom data format resolver- Parameters:
dataFormatResolver
- the resolver
-
getHealthCheckResolver
HealthCheckResolver getHealthCheckResolver()Gets the current health check resolver- Returns:
- the resolver
-
setHealthCheckResolver
Sets a custom health check resolver- Parameters:
healthCheckResolver
- the resolver
-
getDevConsoleResolver
DevConsoleResolver getDevConsoleResolver()Gets the current dev console resolver- Returns:
- the resolver
-
setDevConsoleResolver
Sets a custom dev console resolver- Parameters:
devConsoleResolver
- the resolver
-
getPackageScanClassResolver
PackageScanClassResolver getPackageScanClassResolver()Returns the package scanning class resolver- Returns:
- the resolver
-
setPackageScanClassResolver
Sets the package scanning class resolver to use- Parameters:
resolver
- the resolver
-
getPackageScanResourceResolver
PackageScanResourceResolver getPackageScanResourceResolver()Returns the package scanning resource resolver- Returns:
- the resolver
-
setPackageScanResourceResolver
Sets the package scanning resource resolver to use- Parameters:
resolver
- the resolver
-
getDefaultFactoryFinder
FactoryFinder getDefaultFactoryFinder()Gets the default FactoryFinder which will be used for the loading the factory class from META-INF- Returns:
- the default factory finder
- See Also:
-
getBootstrapFactoryFinder
FactoryFinder getBootstrapFactoryFinder()Gets the bootstrap FactoryFinder which will be used for the loading the factory class from META-INF. This bootstrap factory finder is only intended to be used during bootstrap (starting) CamelContext.- Returns:
- the bootstrap factory finder
- See Also:
-
setBootstrapFactoryFinder
Sets the bootstrap FactoryFinder which will be used for the loading the factory class from META-INF. This bootstrap factory finder is only intended to be used during bootstrap (starting) CamelContext.- See Also:
-
getBootstrapFactoryFinder
Gets the bootstrap FactoryFinder which will be used for the loading the factory class from META-INF in the given path. This bootstrap factory finder is only intended to be used during bootstrap (starting) CamelContext.- Parameters:
path
- the META-INF path- Returns:
- the bootstrap factory finder
- See Also:
-
getBootstrapConfigurerResolver
ConfigurerResolver getBootstrapConfigurerResolver()Gets the bootstrapConfigurerResolver
to use. This bootstrap resolver is only intended to be used during bootstrap (starting) CamelContext. -
setBootstrapConfigurerResolver
sets the bootstrapConfigurerResolver
to use. This bootstrap resolver is only intended to be used during bootstrap (starting) CamelContext. -
getFactoryFinder
Gets the FactoryFinder which will be used for the loading the factory class from META-INF in the given path- Parameters:
path
- the META-INF path- Returns:
- the factory finder
-
getFactoryFinderResolver
FactoryFinderResolver getFactoryFinderResolver()Gets the factory finder resolver to use- Returns:
- the factory finder resolver
-
setFactoryFinderResolver
Sets the factory finder resolver to use.- Parameters:
resolver
- the factory finder resolver
-
getProcessorFactory
ProcessorFactory getProcessorFactory()Gets the currentProcessorFactory
- Returns:
- the factory, can be null if no custom factory has been set
-
setProcessorFactory
Sets a customProcessorFactory
- Parameters:
processorFactory
- the custom factory
-
getInternalProcessorFactory
InternalProcessorFactory getInternalProcessorFactory()Gets the currentInternalProcessorFactory
- Returns:
- the factory
-
setInternalProcessorFactory
Sets a customInternalProcessorFactory
- Parameters:
internalProcessorFactory
- the custom factory
-
getInterceptEndpointFactory
InterceptEndpointFactory getInterceptEndpointFactory()Gets the currentInterceptEndpointFactory
- Returns:
- the factory
-
setInterceptEndpointFactory
Sets a customInterceptEndpointFactory
- Parameters:
interceptEndpointFactory
- the custom factory
-
getRouteFactory
RouteFactory getRouteFactory()Gets the currentRouteFactory
- Returns:
- the factory
-
setRouteFactory
Sets a customRouteFactory
- Parameters:
routeFactory
- the custom factory
-
getModelJAXBContextFactory
ModelJAXBContextFactory getModelJAXBContextFactory()Returns the JAXB Context factory used to create Models.- Returns:
- the JAXB Context factory used to create Models.
-
setModelJAXBContextFactory
Sets a custom JAXB Context factory to be used- Parameters:
modelJAXBContextFactory
- a JAXB Context factory
-
getDeferServiceFactory
DeferServiceFactory getDeferServiceFactory()Gets theDeferServiceFactory
to use. -
setDeferServiceFactory
Sets a customDeferServiceFactory
to use. -
getUnitOfWorkFactory
UnitOfWorkFactory getUnitOfWorkFactory()Gets theUnitOfWorkFactory
to use. -
setUnitOfWorkFactory
Sets a customUnitOfWorkFactory
to use. -
getAnnotationBasedProcessorFactory
AnnotationBasedProcessorFactory getAnnotationBasedProcessorFactory()Gets theAnnotationBasedProcessorFactory
to use. -
setAnnotationBasedProcessorFactory
void setAnnotationBasedProcessorFactory(AnnotationBasedProcessorFactory annotationBasedProcessorFactory) Sets a customAnnotationBasedProcessorFactory
to use. -
getBeanProxyFactory
BeanProxyFactory getBeanProxyFactory()Gets theBeanProxyFactory
to use. -
getBeanProcessorFactory
BeanProcessorFactory getBeanProcessorFactory()Gets theBeanProcessorFactory
to use. -
getErrorHandlerExecutorService
ScheduledExecutorService getErrorHandlerExecutorService()Gets the default shared thread pool for error handlers which leverages this for asynchronous redelivery tasks. -
addInterceptStrategy
Adds the given interceptor strategy- Parameters:
interceptStrategy
- the strategy
-
getInterceptStrategies
List<InterceptStrategy> getInterceptStrategies()Gets the interceptor strategies- Returns:
- the list of current interceptor strategies
-
setupManagement
Setup management according to whether JMX is enabled or disabled.- Parameters:
options
- optional parameters to configureManagementAgent
.
-
getLogListeners
Set<LogListener> getLogListeners()Gets a list ofLogListener
(can be null if empty). -
addLogListener
Adds aLogListener
. -
getAsyncProcessorAwaitManager
AsyncProcessorAwaitManager getAsyncProcessorAwaitManager()Gets theAsyncProcessor
await manager.- Returns:
- the manager
-
setAsyncProcessorAwaitManager
Sets a customAsyncProcessor
await manager.- Parameters:
manager
- the manager
-
getBeanIntrospection
BeanIntrospection getBeanIntrospection()Gets theBeanIntrospection
-
setBeanIntrospection
Sets a customBeanIntrospection
. -
getHeadersMapFactory
HeadersMapFactory getHeadersMapFactory()Gets theHeadersMapFactory
to use. -
setHeadersMapFactory
Sets a customHeadersMapFactory
to be used. -
getReactiveExecutor
ReactiveExecutor getReactiveExecutor()Gets theReactiveExecutor
to use. -
setReactiveExecutor
Sets a customReactiveExecutor
to be used. -
isEventNotificationApplicable
boolean isEventNotificationApplicable()Whether exchange event notification is applicable (possible). This API is used internally in Camel as optimization. This is only for exchange events as this allows Camel to optimize to avoid preparing exchange events if there are no event listeners that are listening for exchange events. -
setEventNotificationApplicable
void setEventNotificationApplicable(boolean eventNotificationApplicable) Used as internal optimization in Camel to flag whether exchange event notification is applicable or not. This is only for exchange events as this allows Camel to optimize to avoid preparing exchange events if there are no event listeners that are listening for exchange events. -
getRoutesLoader
RoutesLoader getRoutesLoader()Gets theRoutesLoader
to be used. -
setRoutesLoader
Sets a customRoutesLoader
to be used. -
getResourceLoader
ResourceLoader getResourceLoader()Gets theResourceLoader
to be used. -
setResourceLoader
Sets a customResourceLoader
to be used. -
getModelToXMLDumper
ModelToXMLDumper getModelToXMLDumper()Gets theModelToXMLDumper
to be used. -
setModelToXMLDumper
Sets a customModelToXMLDumper
to be used. -
getRestBindingJaxbDataFormatFactory
RestBindingJaxbDataFormatFactory getRestBindingJaxbDataFormatFactory()Gets theRestBindingJaxbDataFormatFactory
to be used. -
setRestBindingJaxbDataFormatFactory
void setRestBindingJaxbDataFormatFactory(RestBindingJaxbDataFormatFactory restBindingJaxbDataFormatFactory) Sets a customRestBindingJaxbDataFormatFactory
to be used. -
getRuntimeCamelCatalog
RuntimeCamelCatalog getRuntimeCamelCatalog()Gets theRuntimeCamelCatalog
if available on the classpath. -
setRuntimeCamelCatalog
Sets theRuntimeCamelCatalog
to use. -
getConfigurerResolver
ConfigurerResolver getConfigurerResolver()Gets theConfigurerResolver
to use. -
setConfigurerResolver
Sets theConfigurerResolver
to use. -
getUriFactoryResolver
UriFactoryResolver getUriFactoryResolver()Gets theUriFactoryResolver
to use. -
setUriFactoryResolver
Sets theUriFactoryResolver
to use. -
getInternalRouteController
RouteController getInternalRouteController()InternalRouteController
that are only used internally by Camel to perform basic route operations. Do not use this as end user. -
getEndpointUriFactory
Gets theEndpointUriFactory
for the given component name. -
getStartupStepRecorder
StartupStepRecorder getStartupStepRecorder()Gets theStartupStepRecorder
to use. -
setStartupStepRecorder
Sets theStartupStepRecorder
to use. -
getCliConnectorFactory
CliConnectorFactory getCliConnectorFactory()Gets theCliConnectorFactory
(optional). -
setCliConnectorFactory
Sets theCliConnectorFactory
to use. -
addRoute
Internal API for adding routes. Do not use this as end user. -
removeRoute
Internal API for removing routes. Do not use this as end user. -
createErrorHandler
Internal API for creating error handler. Do not use this as end user.- Throws:
Exception
-
isLightweight
boolean isLightweight()Whether to run in lightweight mode which triggers some optimizations and memory reduction. Danger this causes Camel to be less dynamic such as adding new route after Camel is started would not be possible. -
setLightweight
void setLightweight(boolean lightweight) Whether to run in lightweight mode which triggers some optimizations and memory reduction. Danger this causes Camel to be less dynamic such as adding new route after Camel is started would not be possible. -
disposeModel
void disposeModel()Danger!!! This will dispose the route model from theCamelContext
which is used for lightweight mode. This means afterwards no new routes can be dynamically added. Any operations on the org.apache.camel.model.ModelCamelContext will return null or be a noop operation. -
getTestExcludeRoutes
String getTestExcludeRoutes()Used during unit-testing where it is possible to specify a set of routes to exclude from discovery -
resolvePropertyPlaceholders
Parses the given text and resolve any property placeholders - using {{key}}. Important: If resolving placeholders on an endpoint uri, then you SHOULD use EndpointHelper#resolveEndpointUriPropertyPlaceholders instead.- Parameters:
text
- the text such as an endpoint uri or the likeskeepUnresolvedOptional
- whether to keep placeholders that are optional and was unresolved- Returns:
- the text with resolved property placeholders
- Throws:
IllegalArgumentException
- is thrown if property placeholders was used and there was an error resolving them
-
getBasePackageScan
String getBasePackageScan()Package name to use as base (offset) for classpath scanning of customCamelConfiguration
,Configuration
, andTypeConverter
.- Returns:
- the base package name (can bre null if not configured)
-
setBasePackageScan
Package name to use as base (offset) for classpath scanning of customCamelConfiguration
,Configuration
, andTypeConverter
.- Parameters:
basePackageScan
- the base package name
-
getModelineFactory
ModelineFactory getModelineFactory()Gets theModelineFactory
. -
setModelineFactory
Sets a customModelineFactory
. -
getStatusPhase
byte getStatusPhase()TheCamelContext
have additional phases that are not defined inServiceStatus
and this method provides the phase ordinal value. -
getPeriodTaskScheduler
PeriodTaskScheduler getPeriodTaskScheduler()Gets the period task scheduler -
setPeriodTaskScheduler
To use a custom period task scheduler -
getPeriodTaskResolver
PeriodTaskResolver getPeriodTaskResolver()Gets the period task resolver -
setPeriodTaskResolver
To use a custom period task resolver
-