Uses of Interface
org.apache.camel.CamelContext
Package
Description
The core Camel API.
Camel cloud
Camel Health Check support
Service Provider Interfaces used by the Camel runtime which are plugin strategies.
A collection of utility classes for configuring a JSSE SSLContext and other JSSE classes.
-
Uses of CamelContext in org.apache.camel
Modifier and TypeMethodDescriptionConsumerTemplate.getCamelContext()
Get theCamelContext
Endpoint.getCamelContext()
Returns the context which created the endpointFluentProducerTemplate.getCamelContext()
Get theCamelContext
ProducerTemplate.getCamelContext()
Get theCamelContext
Route.getCamelContext()
Gets the camel contextExchange.getContext()
Returns the container so that a processor can resolve endpoints from URIsVetoCamelContextStartException.getContext()
Modifier and TypeMethodDescriptionvoid
RouteConfigurationsBuilder.addRouteConfigurationsToCamelContext
(CamelContext context) Adds the route configurations from this builder to the CamelContext.void
RoutesBuilder.addRoutesToCamelContext
(CamelContext context) Adds the routes from this Route Builder to the CamelContext.void
RoutesBuilder.addTemplatedRoutesToCamelContext
(CamelContext context) Adds the templated routes from this Route Builder to the CamelContext.void
AfterPropertiesConfigured.afterPropertiesConfigured
(CamelContext camelContext) Callback invoked after the element have configured its properties.default void
CamelConfiguration.configure
(CamelContext camelContext) Method that allows to do custom configuration during Camel startup.ExpressionFactory.createExpression
(CamelContext camelContext) Creates an expressionPredicateFactory.createPredicate
(CamelContext camelContext) Creates a predicatedefault void
Expression.init
(CamelContext context) Initialize the expression with the given camel contextdefault void
Predicate.init
(CamelContext context) Initialize the predicate with the given camel contextdefault void
Predicate.initPredicate
(CamelContext context) Initialize as a predicate with the given camel contextdefault void
StartupListener.onCamelContextFullyStarted
(CamelContext context, boolean alreadyStarted) Callback invoked when theCamelContext
has been fully started.void
StartupListener.onCamelContextStarted
(CamelContext context, boolean alreadyStarted) Callback invoked when theCamelContext
is about to be fully started (not started yet).default void
StartupListener.onCamelContextStarting
(CamelContext context, boolean alreadyStarted) Callback invoked when theCamelContext
is being started.EndpointConsumerResolver.resolve
(CamelContext context) Resolves this object as an endpoint.<T extends Endpoint>
TEndpointConsumerResolver.resolve
(CamelContext context, Class<T> endpointType) Resolves this object as an endpoint.EndpointProducerResolver.resolve
(CamelContext context) Resolves this object as an endpoint.<T extends Endpoint>
TEndpointProducerResolver.resolve
(CamelContext context, Class<T> endpointType) Resolves this object as an endpoint.void
CamelContextAware.setCamelContext
(CamelContext camelContext) Injects theCamelContext
void
Endpoint.setCamelContext
(CamelContext context) Sets the camel context.static <T> T
CamelContextAware.trySetCamelContext
(T object, CamelContext camelContext) Set theCamelContext
context if the object is an instance ofCamelContextAware
.void
RouteConfigurationsBuilder.updateRouteConfigurationsToCamelContext
(CamelContext context) Adds or updates the route configurations from this builder to the CamelContext.RoutesBuilder.updateRoutesToCamelContext
(CamelContext context) Adds or updates the routes from this Route Builder to the CamelContext.ModifierConstructorDescriptionVetoCamelContextStartException
(String message, Throwable cause, CamelContext context) VetoCamelContextStartException
(String message, Throwable cause, CamelContext context, boolean rethrowException) VetoCamelContextStartException
(String message, CamelContext context) VetoCamelContextStartException
(String message, CamelContext context, boolean rethrowException) -
Uses of CamelContext in org.apache.camel.cloud
Modifier and TypeMethodDescriptionServiceFactory.newInstance
(CamelContext camelContext) Creates an instance of a service. -
Uses of CamelContext in org.apache.camel.console
Modifier and TypeMethodDescriptionstatic DevConsoleRegistry
DevConsoleRegistry.get
(CamelContext context) Returns an optionalDevConsoleRegistry
, by default no registry is present, and it must be explicit activated. -
Uses of CamelContext in org.apache.camel.health
Modifier and TypeMethodDescriptionstatic HealthCheckRegistry
HealthCheckRegistry.get
(CamelContext context) Returns an optionalHealthCheckRegistry
, by default no registry is present, and it must be explicit activated.static HealthCheck
HealthCheckHelper.getHealthCheck
(CamelContext context, String id) Gets theHealthCheck
by the given id (will resolve from classpath if necessary)static <T extends HealthCheck>
THealthCheckHelper.getHealthCheck
(CamelContext context, String id, Class<T> type) Gets theHealthCheck
by the given id (will resolve from classpath if necessary)static HealthCheckRegistry
HealthCheckHelper.getHealthCheckRegistry
(CamelContext context) Gets theHealthCheckRegistry
.static HealthCheckRepository
HealthCheckHelper.getHealthCheckRepository
(CamelContext context, String id) Gets theHealthCheckRepository
by the given id (will resolve from classpath if necessary)static <T extends HealthCheckRepository>
THealthCheckHelper.getHealthCheckRepository
(CamelContext context, String id, Class<T> type) Gets theHealthCheckRepository
by the given id (will resolve from classpath if necessary)static Collection<HealthCheck.Result>
HealthCheckHelper.invoke
(CamelContext camelContext) Invokes all the checks and returns a collection of results.static Collection<HealthCheck.Result>
HealthCheckHelper.invoke
(CamelContext camelContext, String exposureLevel) Invokes all the checks and returns a collection of results.static Optional<HealthCheck.Result>
Invoke a check by id.static Collection<HealthCheck.Result>
HealthCheckHelper.invoke
(CamelContext camelContext, Function<HealthCheck, Map<String, Object>> optionsSupplier) Invokes the checks and returns a collection of results.static Collection<HealthCheck.Result>
HealthCheckHelper.invoke
(CamelContext camelContext, Function<HealthCheck, Map<String, Object>> optionsSupplier, Predicate<HealthCheck> filter, String exposureLevel) Invokes the checks and returns a collection of results.static Collection<HealthCheck.Result>
HealthCheckHelper.invoke
(CamelContext camelContext, Predicate<HealthCheck> filter) Invokes the checks and returns a collection of results.static Collection<HealthCheck.Result>
HealthCheckHelper.invokeLiveness
(CamelContext camelContext) Invokes the liveness checks and returns a collection of results.static Collection<HealthCheck.Result>
HealthCheckHelper.invokeLiveness
(CamelContext camelContext, String exposureLevel) Invokes the liveness checks and returns a collection of results.static Collection<HealthCheck.Result>
HealthCheckHelper.invokeReadiness
(CamelContext camelContext) Invokes the readiness checks and returns a collection of results.static Collection<HealthCheck.Result>
HealthCheckHelper.invokeReadiness
(CamelContext camelContext, String exposureLevel) Invokes the readiness checks and returns a collection of results. -
Uses of CamelContext in org.apache.camel.spi
Modifier and TypeMethodDescriptionHasCamelContext.getCamelContext()
Returns the camel context.Transformer.getCamelContext()
Validator.getCamelContext()
CamelEvent.CamelContextEvent.getContext()
Modifier and TypeMethodDescriptionboolean
CamelContextTracker.accept
(CamelContext camelContext) Called to determine whether this tracker should accept the given context.boolean
CamelContextTracker.Filter.accept
(CamelContext camelContext) AggregationRepository.add
(CamelContext camelContext, String key, Exchange exchange) Add the givenExchange
under the correlation key.OptimisticLockingAggregationRepository.add
(CamelContext camelContext, String key, Exchange oldExchange, Exchange newExchange) Add the givenExchange
under the correlation key.InternalProcessorFactory.addChildUnitOfWorkProcessorAdvice
(CamelContext camelContext, Processor processor, Route route, UnitOfWork parent) InternalProcessorFactory.addUnitOfWorkProcessorAdvice
(CamelContext camelContext, Processor processor, Route route) default void
UnitOfWorkFactory.afterPropertiesConfigured
(CamelContext camelContext) void
CamelContextCustomizer.configure
(CamelContext camelContext) Configure theCamelContext
.boolean
PropertyConfigurer.configure
(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) Configures the propertyvoid
AggregationRepository.confirm
(CamelContext camelContext, String exchangeId) Confirms the completion of theExchange
.default boolean
RecoverableAggregationRepository.confirmWithResult
(CamelContext camelContext, String exchangeId) Confirms the completion of theExchange
with a result.void
CamelContextTracker.contextCreated
(CamelContext camelContext) Called when a context is created.void
CamelContextTracker.contextDestroyed
(CamelContext camelContext) Called when a context has been shutdown.ManagementStrategyFactory.create
(CamelContext context, Map<String, Object> properties) Creates theManagementStrategy
.RestApiConsumerFactory.createApiConsumer
(CamelContext camelContext, Processor processor, String contextPath, RestConfiguration configuration, Map<String, Object> parameters) Creates a new REST API Event Driven Consumer, which provides API listing of the REST servicesRestApiProcessorFactory.createApiProcessor
(CamelContext camelContext, String contextPath, RestConfiguration configuration, Map<String, Object> parameters) Creates a new REST API Processor , which provides API listing of the REST servicesBeanProcessorFactory.createBeanProcessor
(CamelContext camelContext, Object bean, Method method) Creates the bean processor from the existing bean instanceBeanProcessorFactory.createBeanProcessor
(CamelContext camelContext, Object bean, String beanType, Class<?> beanClass, String ref, String method, BeanScope scope) Creates the bean processor from a given set of parameters that can refer to the bean via an existing bean, a reference to a bean, or its class name etc.EventFactory.createCamelContextInitializedEvent
(CamelContext context) Creates anCamelEvent
for Camel has been initialized successfully.EventFactory.createCamelContextInitializingEvent
(CamelContext context) Creates anCamelEvent
for Camel is initializing.EventFactory.createCamelContextReloaded
(CamelContext context, Object source) Creates anCamelEvent
forCamelContext
has been reloaded successfully.EventFactory.createCamelContextReloadFailure
(CamelContext context, Object source, Throwable cause) Creates anCamelEvent
forCamelContext
failed reload.EventFactory.createCamelContextReloading
(CamelContext context, Object source) Creates anCamelEvent
forCamelContext
being reloaded.EventFactory.createCamelContextResumedEvent
(CamelContext context) Creates anCamelEvent
for Camel has been resumed successfully.EventFactory.createCamelContextResumeFailureEvent
(CamelContext context, Throwable cause) Creates anCamelEvent
for Camel failing to resumeEventFactory.createCamelContextResumingEvent
(CamelContext context) Creates anCamelEvent
for Camel is resuming.EventFactory.createCamelContextRoutesStartedEvent
(CamelContext context) Creates anCamelEvent
for Camel routes started.EventFactory.createCamelContextRoutesStartingEvent
(CamelContext context) Creates anCamelEvent
for Camel routes starting.EventFactory.createCamelContextRoutesStoppedEvent
(CamelContext context) Creates anCamelEvent
for Camel routes stopped.EventFactory.createCamelContextRoutesStoppingEvent
(CamelContext context) Creates anCamelEvent
for Camel routes stopping.EventFactory.createCamelContextStartedEvent
(CamelContext context) Creates anCamelEvent
for Camel has been started successfully.EventFactory.createCamelContextStartingEvent
(CamelContext context) Creates anCamelEvent
for Camel is starting.EventFactory.createCamelContextStartupFailureEvent
(CamelContext context, Throwable cause) Creates anCamelEvent
for Camel failing to startEventFactory.createCamelContextStopFailureEvent
(CamelContext context, Throwable cause) Creates anCamelEvent
for Camel failing to stop cleanlyEventFactory.createCamelContextStoppedEvent
(CamelContext context) Creates anCamelEvent
for Camel has been stopped successfully.EventFactory.createCamelContextStoppingEvent
(CamelContext context) Creates anCamelEvent
for Camel is stopping.EventFactory.createCamelContextSuspendedEvent
(CamelContext context) Creates anCamelEvent
for Camel has been suspended successfully.EventFactory.createCamelContextSuspendingEvent
(CamelContext context) Creates anCamelEvent
for Camel is suspending.InternalProcessorFactory.createChannel
(CamelContext camelContext) RestConsumerFactory.createConsumer
(CamelContext camelContext, Processor processor, String verb, String basePath, String uriTemplate, String consumes, String produces, RestConfiguration configuration, Map<String, Object> parameters) Creates a new REST Event Driven Consumer, which consumes messages from the endpoint using the given processorDataFormatResolver.createDataFormat
(String name, CamelContext context) Creates the given data format given its name.ModelReifierFactory.createDataFormat
(CamelContext camelContext, Object dataFormatDefinition) DebuggerFactory.createDebugger
(CamelContext camelContext) Creates the debugger.AnnotationBasedProcessorFactory.createDynamicRouter
(CamelContext camelContext, DynamicRouter annotation) Creates dynamic router processor from the configured annotation.ModelReifierFactory.createExpression
(CamelContext camelContext, Object expressionDefinition) InterceptEndpointFactory.createInterceptSendToEndpoint
(CamelContext camelContext, Endpoint endpoint, boolean skip, Processor before, Processor after) Creates an endpoint when intercepting sending to an endpoint (detour).ManagementStrategyFactory.createLifecycle
(CamelContext context) Creates the associatedLifecycleStrategy
that the management strategy uses.ModelReifierFactory.createPredicate
(CamelContext camelContext, Object expressionDefinition) ProcessorFactory.createProcessor
(CamelContext camelContext, String definitionName, Object[] args) Creates a processor by the name of the definition.RestProducerFactory.createProducer
(CamelContext camelContext, String host, String verb, String basePath, String uriTemplate, String queryParameters, String consumes, String produces, RestConfiguration configuration, Map<String, Object> parameters) Creates a new REST producer.AnnotationBasedProcessorFactory.createRecipientList
(CamelContext camelContext, RecipientList annotation) Creates recipient list processor from the configured annotation.ModelReifierFactory.createRoute
(CamelContext camelContext, Object routeDefinition) RouteFactory.createRoute
(CamelContext camelContext, NamedNode routeDefinition, String routeId, String routeDescription, Endpoint endpoint, Resource resource) Creates the route which should be configured afterwards with more configurations.RoutePolicyFactory.createRoutePolicy
(CamelContext camelContext, String routeId, NamedNode route) Creates a newRoutePolicy
which will be assigned to the given route.AnnotationBasedProcessorFactory.createRoutingSlip
(CamelContext camelContext, RoutingSlip annotation) Creates routing slip processor from the configured annotation.EventFactory.createServiceStartupFailureEvent
(CamelContext context, Object service, Throwable cause) Creates anCamelEvent
for a Service failed to start cleanlyEventFactory.createServiceStopFailureEvent
(CamelContext context, Object service, Throwable cause) Creates anCamelEvent
for a Service failed to stop cleanlyInternalProcessorFactory.createSharedCamelInternalProcessor
(CamelContext camelContext) ModelReifierFactory.createTransformer
(CamelContext camelContext, Object transformerDefinition) ModelReifierFactory.createValidator
(CamelContext camelContext, Object transformerDefinition) ModelToXMLDumper.dumpModelAsXml
(CamelContext context, NamedNode definition) Dumps the definition as XMLModelToXMLDumper.dumpModelAsXml
(CamelContext context, NamedNode definition, boolean resolvePlaceholders) Dumps the definition as XMLModelToYAMLDumper.dumpModelAsYaml
(CamelContext context, NamedNode definition) Dumps the definition as YAMLModelToYAMLDumper.dumpModelAsYaml
(CamelContext context, NamedNode definition, boolean resolvePlaceholders, boolean uriAsParameters) Dumps the definition as YAMLAggregationRepository.get
(CamelContext camelContext, String key) Gets the given exchange with the correlation keyManagementObjectStrategy.getManagedObjectForCamelContext
(CamelContext context) ManagementObjectStrategy.getManagedObjectForCamelHealth
(CamelContext context, HealthCheckRegistry healthCheckRegistry) ManagementObjectStrategy.getManagedObjectForClusterService
(CamelContext context, CamelClusterService service) ManagementObjectStrategy.getManagedObjectForComponent
(CamelContext context, Component component, String name) ManagementObjectStrategy.getManagedObjectForConsumer
(CamelContext context, Consumer consumer) ManagementObjectStrategy.getManagedObjectForDataFormat
(CamelContext context, DataFormat dataFormat) ManagementObjectStrategy.getManagedObjectForEndpoint
(CamelContext context, Endpoint endpoint) ManagementObjectStrategy.getManagedObjectForEventNotifier
(CamelContext context, EventNotifier eventNotifier) ManagementObjectStrategy.getManagedObjectForProcessor
(CamelContext context, Processor processor, NamedNode definition, Route route) ManagementObjectStrategy.getManagedObjectForProducer
(CamelContext context, Producer producer) ManagementObjectStrategy.getManagedObjectForRoute
(CamelContext context, Route route) ManagementObjectStrategy.getManagedObjectForRouteController
(CamelContext context, RouteController routeController) ManagementObjectStrategy.getManagedObjectForService
(CamelContext context, Service service) ManagementObjectStrategy.getManagedObjectForThreadPool
(CamelContext context, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId) ManagementObjectNameStrategy.getObjectNameForCamelContext
(CamelContext context) ManagementObjectNameStrategy.getObjectNameForCamelHealth
(CamelContext context) ManagementObjectNameStrategy.getObjectNameForClusterService
(CamelContext context, CamelClusterService service) ManagementObjectNameStrategy.getObjectNameForConsumer
(CamelContext context, Consumer consumer) ManagementObjectNameStrategy.getObjectNameForDataFormat
(CamelContext context, DataFormat endpoint) ManagementObjectNameStrategy.getObjectNameForEventNotifier
(CamelContext context, EventNotifier eventNotifier) ManagementObjectNameStrategy.getObjectNameForProcessor
(CamelContext context, Processor processor, NamedNode definition) ManagementObjectNameStrategy.getObjectNameForProducer
(CamelContext context, Producer producer) ManagementObjectNameStrategy.getObjectNameForRouteController
(CamelContext context, RouteController controller) ManagementObjectNameStrategy.getObjectNameForService
(CamelContext context, Service service) ManagementObjectNameStrategy.getObjectNameForStep
(CamelContext context, Processor processor, NamedNode definition) ManagementObjectNameStrategy.getObjectNameForThreadPool
(CamelContext context, ThreadPoolExecutor threadPool, String id, String sourceId) ManagementObjectNameStrategy.getObjectNameForTracer
(CamelContext context, Service tracer) static void
CamelContextTracker.notifyContextCreated
(CamelContext camelContext) static void
CamelContextTracker.notifyContextDestroyed
(CamelContext camelContext) default void
LifecycleStrategy.onContextInitialized
(CamelContext context) Notification on initializedCamelContext
.void
OnCamelContextInitialized.onContextInitialized
(CamelContext context) default void
LifecycleStrategy.onContextInitializing
(CamelContext context) Notification on initializing aCamelContext
.void
OnCamelContextInitializing.onContextInitializing
(CamelContext context) default void
LifecycleStrategy.onContextStarted
(CamelContext context) Notification on startedCamelContext
.void
OnCamelContextStarted.onContextStarted
(CamelContext context) default void
LifecycleStrategy.onContextStarting
(CamelContext context) Notification on starting aCamelContext
.void
OnCamelContextStarting.onContextStarting
(CamelContext context) default void
LifecycleStrategy.onContextStopped
(CamelContext context) Notification on stoppedCamelContext
.void
OnCamelContextStopped.onContextStopped
(CamelContext context) default void
LifecycleStrategy.onContextStopping
(CamelContext context) Notification on stopping aCamelContext
.void
OnCamelContextStopping.onContextStopping
(CamelContext context) void
LifecycleStrategy.onServiceAdd
(CamelContext context, Service service, Route route) Notification on adding aService
.void
LifecycleStrategy.onServiceRemove
(CamelContext context, Service service, Route route) Notification on removing aService
.void
LifecycleStrategy.onThreadPoolAdd
(CamelContext camelContext, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId) Notification on adding a thread pool.void
LifecycleStrategy.onThreadPoolRemove
(CamelContext camelContext, ThreadPoolExecutor threadPool) Notification on removing a thread pool.void
CompilePostProcessor.postCompile
(CamelContext camelContext, String name, Class<?> clazz, byte[] byteCode, Object instance) Invoked after the class has been compiledRecoverableAggregationRepository.recover
(CamelContext camelContext, String exchangeId) Recovers the exchange with the given exchange idvoid
AggregationRepository.remove
(CamelContext camelContext, String key, Exchange exchange) Removes the exchange with the given correlation key, which should happen when anExchange
is completedvoid
OptimisticLockingAggregationRepository.remove
(CamelContext camelContext, String key, Exchange exchange) Removes the given Exchange when both the supplied key and Exchange are present in the repository.TransformerResolver.resolve
(K key, CamelContext camelContext) Attempts to resolve the transformer for the given key.ComponentResolver.resolveComponent
(String name, CamelContext context) Attempts to resolve the component for the given URIUriFactoryResolver.resolveFactory
(String name, CamelContext context) Resolves the givenEndpointUriFactory
.LanguageResolver.resolveLanguage
(String name, CamelContext context) Resolves the given language.ComponentNameResolver.resolveNames
(CamelContext camelContext) Discovers which components are available on the classpath.ConfigurerResolver.resolvePropertyConfigurer
(String name, CamelContext context) Resolves the given configurer.RecoverableAggregationRepository.scan
(CamelContext camelContext) Scans the repository forExchange
s to be recoveredvoid
Transformer.setCamelContext
(CamelContext context) void
Validator.setCamelContext
(CamelContext context) boolean
BeanIntrospection.setProperty
(CamelContext context, Object target, String name, Object value) This method supports three modes to set a property: 1.boolean
BeanIntrospection.setProperty
(CamelContext context, TypeConverter typeConverter, Object target, String name, Object value, String refName, boolean allowBuilderPattern, boolean allowPrivateSetter, boolean ignoreCase) This method supports three modes to set a property: 1.void
RestBindingJaxbDataFormatFactory.setupJaxb
(CamelContext camelContext, RestConfiguration config, String type, Class<?> typeClass, String outType, Class<?> outTypeClass, DataFormat jaxb, DataFormat outJaxb) Setup XML data formatvoid
ManagementStrategyFactory.setupManagement
(CamelContext camelContext, ManagementStrategy strategy, LifecycleStrategy lifecycle) Setup the management on theCamelContext
.void
ShutdownStrategy.shutdown
(CamelContext context, List<RouteStartupOrder> routes) Shutdown the routesvoid
ShutdownStrategy.shutdown
(CamelContext context, List<RouteStartupOrder> routes, long timeout, TimeUnit timeUnit) Shutdown the routes using a specified timeout instead of the default timeout valuesboolean
ShutdownStrategy.shutdown
(CamelContext context, RouteStartupOrder route, long timeout, TimeUnit timeUnit, boolean abortAfterTimeout) Shutdown the route using a specified timeout instead of the default timeout values and supports abortAfterTimeout modevoid
ShutdownStrategy.shutdownForced
(CamelContext context, List<RouteStartupOrder> routes) Shutdown the routes, forcing shutdown being more aggressive, if timeout occurred.void
ShutdownStrategy.suspend
(CamelContext context, List<RouteStartupOrder> routes) Suspends the routesvoid
ShutdownStrategy.suspend
(CamelContext context, List<RouteStartupOrder> routes, long timeout, TimeUnit timeUnit) Suspends the routes using a specified timeout instead of the default timeout valuesdefault boolean
CamelContextTracker.Filter.test
(CamelContext camelContext) InterceptStrategy.wrapProcessorInInterceptors
(CamelContext context, NamedNode definition, Processor target, Processor nextTarget) Give implementor an opportunity to wrap the target processor in a route. -
Uses of CamelContext in org.apache.camel.support.jsse
Modifier and TypeMethodDescriptionSSLContextParameters.createSSLContext
(CamelContext camelContext) Creates anSSLContext
based on the related configuration options of this instance.void
JsseParameters.setCamelContext
(CamelContext context) Sets the optionalCamelContext
used for integration with core capabilities such as Camel Property Placeholders andClassResolver
.