public class LightweightCamelContext extends Object implements org.apache.camel.ExtendedCamelContext, org.apache.camel.CatalogCamelContext, ModelCamelContext
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.camel.CamelContext |
delegate |
| Modifier | Constructor and Description |
|---|---|
|
LightweightCamelContext()
Creates the
ModelCamelContext using
DefaultRegistry as registry. |
|
LightweightCamelContext(org.apache.camel.spi.BeanRepository repository)
Creates the
CamelContext using the given BeanRepository
as first-choice repository, and the
SimpleRegistry as fallback, via the
DefaultRegistry implementation. |
protected |
LightweightCamelContext(org.apache.camel.CamelContext delegate) |
|
LightweightCamelContext(org.apache.camel.spi.Registry registry)
Creates the
ModelCamelContext 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) |
void |
addFaultToleranceConfiguration(String id,
FaultToleranceConfigurationDefinition configuration)
Adds the MicroProfile Fault Tolerance configuration
|
void |
addHystrixConfiguration(String id,
HystrixConfigurationDefinition configuration)
Adds the Hystrix configuration
|
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 |
addPrototypeService(Object object) |
void |
addResilience4jConfiguration(String id,
Resilience4jConfigurationDefinition configuration)
Adds the Resilience4j configuration
|
void |
addRestDefinitions(Collection<RestDefinition> restDefinitions,
boolean addToRoutes)
Adds a collection of rest definitions to the context
|
void |
addRoute(org.apache.camel.Route route) |
void |
addRouteDefinition(RouteDefinition routeDefinition)
Add a route definition to the context
Important: Each route in the same
CamelContext must have
an unique route id. |
void |
addRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
Adds a collection of route definitions to the context
Important: Each route in the same
CamelContext must have
an unique route id. |
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 |
addServiceCallConfiguration(String serviceName,
ServiceCallConfigurationDefinition configuration)
Adds the service call configuration
|
void |
addStartupListener(org.apache.camel.StartupListener listener) |
RouteDefinition |
adviceWith(RouteDefinition definition,
AdviceWithRouteBuilder builder) |
void |
build() |
void |
close() |
org.apache.camel.ConsumerTemplate |
createConsumerTemplate() |
org.apache.camel.ConsumerTemplate |
createConsumerTemplate(int maximumCacheSize) |
org.apache.camel.spi.DataFormat |
createDataFormat(String name) |
org.apache.camel.Processor |
createErrorHandler(org.apache.camel.Route route,
org.apache.camel.Processor processor) |
org.apache.camel.Expression |
createExpression(ExpressionDefinition definition) |
org.apache.camel.FluentProducerTemplate |
createFluentProducerTemplate() |
org.apache.camel.FluentProducerTemplate |
createFluentProducerTemplate(int maximumCacheSize) |
org.apache.camel.AsyncProcessor |
createMulticast(Collection<org.apache.camel.Processor> processors,
ExecutorService executor,
boolean shutdownExecutorService) |
org.apache.camel.Predicate |
createPredicate(ExpressionDefinition definition) |
org.apache.camel.ProducerTemplate |
createProducerTemplate() |
org.apache.camel.ProducerTemplate |
createProducerTemplate(int maximumCacheSize) |
void |
deferStartService(Object object,
boolean stopOnShutdown) |
void |
disableJMX() |
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.CamelContext |
getCamelContextReference() |
protected org.apache.camel.CatalogCamelContext |
getCatalogCamelContext() |
org.apache.camel.spi.ClassResolver |
getClassResolver() |
org.apache.camel.Component |
getComponent(String componentName) |
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) |
org.apache.camel.spi.ComponentNameResolver |
getComponentNameResolver() |
List<String> |
getComponentNames() |
String |
getComponentParameterJsonSchema(String componentName) |
org.apache.camel.spi.ComponentResolver |
getComponentResolver() |
org.apache.camel.spi.ConfigurerResolver |
getConfigurerResolver() |
String |
getDataFormatParameterJsonSchema(String dataFormatName) |
org.apache.camel.spi.DataFormatResolver |
getDataFormatResolver() |
Map<String,DataFormatDefinition> |
getDataFormats()
Gets the data formats that can be referenced in the routes.
|
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(org.apache.camel.spi.NormalizedEndpointUri uri) |
org.apache.camel.Endpoint |
getEndpoint(org.apache.camel.spi.NormalizedEndpointUri uri,
Map<String,Object> parameters) |
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) |
Map<String,org.apache.camel.Endpoint> |
getEndpointMap()
Deprecated.
|
org.apache.camel.spi.EndpointRegistry<? extends org.apache.camel.ValueHolder<String>> |
getEndpointRegistry() |
Collection<org.apache.camel.Endpoint> |
getEndpoints() |
ScheduledExecutorService |
getErrorHandlerExecutorService() |
org.apache.camel.ErrorHandlerFactory |
getErrorHandlerFactory() |
org.apache.camel.spi.ExecutorServiceManager |
getExecutorServiceManager() |
protected org.apache.camel.ExtendedCamelContext |
getExtendedCamelContext() |
<T> T |
getExtension(Class<T> type) |
org.apache.camel.spi.FactoryFinder |
getFactoryFinder(String path) |
org.apache.camel.spi.FactoryFinderResolver |
getFactoryFinderResolver() |
FaultToleranceConfigurationDefinition |
getFaultToleranceConfiguration(String id)
Gets the MicroProfile Fault Tolerance configuration by the given name.
|
org.apache.camel.GlobalEndpointConfiguration |
getGlobalEndpointConfiguration() |
String |
getGlobalOption(String key) |
Map<String,String> |
getGlobalOptions() |
org.apache.camel.spi.HeadersMapFactory |
getHeadersMapFactory() |
HystrixConfigurationDefinition |
getHystrixConfiguration(String id)
Gets the Hystrix configuration by the given name.
|
org.apache.camel.spi.InflightRepository |
getInflightRepository() |
org.apache.camel.spi.Injector |
getInjector() |
List<org.apache.camel.spi.InterceptStrategy> |
getInterceptStrategies() |
org.apache.camel.spi.RouteController |
getInternalRouteController() |
List<String> |
getLanguageNames()
Deprecated.
|
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() |
protected ModelCamelContext |
getModelCamelContext() |
org.apache.camel.spi.ModelJAXBContextFactory |
getModelJAXBContextFactory() |
org.apache.camel.spi.ModelToXMLDumper |
getModelToXMLDumper() |
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() |
org.apache.camel.Processor |
getProcessor(String id) |
<T extends org.apache.camel.Processor> |
getProcessor(String id,
Class<T> type) |
ProcessorDefinition<?> |
getProcessorDefinition(String id)
Gets the processor definition from any of the routes which with the given
id
|
<T extends ProcessorDefinition<T>> |
getProcessorDefinition(String id,
Class<T> type)
Gets the processor definition from any of the routes which with the given
id
|
org.apache.camel.spi.ProcessorFactory |
getProcessorFactory() |
org.apache.camel.spi.PropertiesComponent |
getPropertiesComponent() |
org.apache.camel.Endpoint |
getPrototypeEndpoint(org.apache.camel.spi.NormalizedEndpointUri uri) |
org.apache.camel.Endpoint |
getPrototypeEndpoint(String uri) |
org.apache.camel.spi.ReactiveExecutor |
getReactiveExecutor() |
org.apache.camel.spi.Registry |
getRegistry() |
<T> T |
getRegistry(Class<T> type) |
Resilience4jConfigurationDefinition |
getResilience4jConfiguration(String id)
Gets the Resilience4j configuration by the given name.
|
org.apache.camel.spi.RestBindingJaxbDataFormatFactory |
getRestBindingJaxbDataFormatFactory() |
org.apache.camel.spi.RestConfiguration |
getRestConfiguration() |
List<RestDefinition> |
getRestDefinitions()
Returns a list of the current REST definitions
|
org.apache.camel.spi.RestRegistry |
getRestRegistry() |
org.apache.camel.Route |
getRoute(String id) |
org.apache.camel.spi.RouteController |
getRouteController() |
RouteDefinition |
getRouteDefinition(String id)
Gets the route definition with the given id
|
List<RouteDefinition> |
getRouteDefinitions()
Returns a list of the current route definitions
|
Function<RouteDefinition,Boolean> |
getRouteFilter()
Gets the current route filter
|
List<org.apache.camel.spi.RoutePolicyFactory> |
getRoutePolicyFactories() |
List<org.apache.camel.Route> |
getRoutes() |
int |
getRoutesSize() |
List<org.apache.camel.spi.RouteStartupOrder> |
getRouteStartupOrder() |
org.apache.camel.catalog.RuntimeCamelCatalog |
getRuntimeCamelCatalog() |
org.apache.camel.spi.RuntimeEndpointRegistry |
getRuntimeEndpointRegistry() |
ServiceCallConfigurationDefinition |
getServiceCallConfiguration(String serviceName)
Gets the service call configuration by the given name.
|
org.apache.camel.ShutdownRoute |
getShutdownRoute() |
org.apache.camel.ShutdownRunningTask |
getShutdownRunningTask() |
org.apache.camel.spi.ShutdownStrategy |
getShutdownStrategy() |
org.apache.camel.support.jsse.SSLContextParameters |
getSSLContextParameters() |
Date |
getStartDate() |
org.apache.camel.ServiceStatus |
getStatus() |
org.apache.camel.spi.StreamCachingStrategy |
getStreamCachingStrategy() |
org.apache.camel.spi.Tracer |
getTracer() |
String |
getTracingPattern() |
org.apache.camel.spi.TransformerRegistry |
getTransformerRegistry() |
List<TransformerDefinition> |
getTransformers()
Gets the transformers that can be referenced in the routes.
|
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 |
getValidatorRegistry() |
List<ValidatorDefinition> |
getValidators()
Gets the validators that can be referenced in the routes.
|
String |
getVersion() |
org.apache.camel.spi.XMLRoutesDefinitionLoader |
getXMLRoutesDefinitionLoader() |
org.apache.camel.Component |
hasComponent(String componentName) |
org.apache.camel.Endpoint |
hasEndpoint(org.apache.camel.spi.NormalizedEndpointUri uri) |
org.apache.camel.Endpoint |
hasEndpoint(String uri) |
<T> T |
hasService(Class<T> type) |
boolean |
hasService(Object object) |
<T> Set<T> |
hasServices(Class<T> type) |
void |
init() |
Boolean |
isAllowUseOriginalMessage() |
Boolean |
isAutoStartup() |
Boolean |
isBacklogTracing() |
Boolean |
isCaseInsensitiveHeaders() |
Boolean |
isDebugging() |
boolean |
isEventNotificationApplicable() |
Boolean |
isLoadTypeConverters() |
Boolean |
isLogExhaustedMessageBody() |
Boolean |
isLogMask() |
Boolean |
isMessageHistory() |
boolean |
isRunAllowed() |
boolean |
isSetupRoutes() |
boolean |
isStarted() |
boolean |
isStarting() |
boolean |
isStopped() |
boolean |
isStopping() |
Boolean |
isStreamCaching() |
boolean |
isSuspended() |
boolean |
isSuspending() |
Boolean |
isTracing() |
Boolean |
isTypeConverterStatisticsEnabled() |
Boolean |
isUseBreadcrumb() |
Boolean |
isUseDataType() |
Boolean |
isUseMDCLogging() |
boolean |
isVetoStarted() |
org.apache.camel.spi.NormalizedEndpointUri |
normalizeUri(String uri) |
void |
registerEndpointCallback(org.apache.camel.spi.EndpointStrategy strategy) |
void |
registerTransformer(TransformerDefinition transformer) |
void |
registerValidator(ValidatorDefinition validator) |
org.apache.camel.Component |
removeComponent(String componentName) |
void |
removeEndpoint(org.apache.camel.Endpoint endpoint) |
Collection<org.apache.camel.Endpoint> |
removeEndpoints(String pattern) |
void |
removeRoute(org.apache.camel.Route route) |
boolean |
removeRoute(String routeId) |
void |
removeRouteDefinition(RouteDefinition routeDefinition)
Removes a route definition from the context - stopping any previously
running routes if any of them are actively running
|
void |
removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
Removes a collection of route definitions from the context - stopping any
previously running routes if any of them are actively running
|
boolean |
removeService(Object object) |
org.apache.camel.spi.DataFormat |
resolveDataFormat(String name) |
DataFormatDefinition |
resolveDataFormatDefinition(String name)
Resolve a data format definition given its 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 model) |
org.apache.camel.spi.Validator |
resolveValidator(org.apache.camel.spi.DataType type) |
void |
resume() |
void |
setAllowUseOriginalMessage(Boolean allowUseOriginalMessage) |
void |
setApplicationContextClassLoader(ClassLoader classLoader) |
void |
setAsyncProcessorAwaitManager(org.apache.camel.spi.AsyncProcessorAwaitManager manager) |
void |
setAutoStartup(Boolean autoStartup) |
void |
setBacklogTracing(Boolean backlogTrace) |
void |
setBeanIntrospection(org.apache.camel.spi.BeanIntrospection beanIntrospection) |
void |
setCaseInsensitiveHeaders(Boolean caseInsensitiveHeaders) |
void |
setClassResolver(org.apache.camel.spi.ClassResolver resolver) |
void |
setComponentNameResolver(org.apache.camel.spi.ComponentNameResolver componentNameResolver) |
void |
setComponentResolver(org.apache.camel.spi.ComponentResolver componentResolver) |
void |
setConfigurerResolver(org.apache.camel.spi.ConfigurerResolver configurerResolver) |
void |
setDataFormatResolver(org.apache.camel.spi.DataFormatResolver dataFormatResolver) |
void |
setDataFormats(Map<String,DataFormatDefinition> dataFormats)
Sets the data formats that can be referenced in the routes.
|
void |
setDebugger(org.apache.camel.spi.Debugger debugger) |
void |
setDebugging(Boolean debugging) |
void |
setDelayer(Long delay) |
void |
setErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) |
void |
setEventNotificationApplicable(boolean eventNotificationApplicable) |
void |
setExecutorServiceManager(org.apache.camel.spi.ExecutorServiceManager executorServiceManager) |
<T> void |
setExtension(Class<T> type,
T module) |
void |
setFactoryFinderResolver(org.apache.camel.spi.FactoryFinderResolver resolver) |
void |
setFaultToleranceConfiguration(FaultToleranceConfigurationDefinition configuration)
Sets the default MicroProfile Fault Tolerance configuration
|
void |
setFaultToleranceConfigurations(List<FaultToleranceConfigurationDefinition> configurations)
Sets the MicroProfile Fault Tolerance configurations
|
void |
setGlobalOptions(Map<String,String> globalOptions) |
void |
setHeadersMapFactory(org.apache.camel.spi.HeadersMapFactory factory) |
void |
setHystrixConfiguration(HystrixConfigurationDefinition configuration)
Sets the default Hystrix configuration
|
void |
setHystrixConfigurations(List<HystrixConfigurationDefinition> configurations)
Sets the Hystrix configurations
|
void |
setInflightRepository(org.apache.camel.spi.InflightRepository repository) |
void |
setInjector(org.apache.camel.spi.Injector injector) |
void |
setLanguageResolver(org.apache.camel.spi.LanguageResolver languageResolver) |
void |
setLoadTypeConverters(Boolean loadTypeConverters) |
void |
setLogExhaustedMessageBody(Boolean logExhaustedMessageBody) |
void |
setLogMask(Boolean logMask) |
void |
setManagementName(String name) |
void |
setManagementNameStrategy(org.apache.camel.spi.ManagementNameStrategy nameStrategy) |
void |
setManagementStrategy(org.apache.camel.spi.ManagementStrategy strategy) |
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 |
setModelToXMLDumper(org.apache.camel.spi.ModelToXMLDumper modelToXMLDumper) |
void |
setName(String name) |
void |
setNameStrategy(org.apache.camel.spi.CamelContextNameStrategy nameStrategy) |
void |
setNodeIdFactory(org.apache.camel.spi.NodeIdFactory factory) |
void |
setPackageScanClassResolver(org.apache.camel.spi.PackageScanClassResolver resolver) |
void |
setPackageScanResourceResolver(org.apache.camel.spi.PackageScanResourceResolver resolver) |
void |
setProcessorFactory(org.apache.camel.spi.ProcessorFactory processorFactory) |
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 |
setResilience4jConfiguration(Resilience4jConfigurationDefinition configuration)
Sets the default Resilience4j configuration
|
void |
setResilience4jConfigurations(List<Resilience4jConfigurationDefinition> configurations)
Sets the Resilience4j configurations
|
void |
setRestBindingJaxbDataFormatFactory(org.apache.camel.spi.RestBindingJaxbDataFormatFactory restBindingJaxbDataFormatFactory) |
void |
setRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration) |
void |
setRestRegistry(org.apache.camel.spi.RestRegistry restRegistry) |
void |
setRouteController(org.apache.camel.spi.RouteController routeController) |
void |
setRouteFilter(Function<RouteDefinition,Boolean> filter)
Sets a custom route filter to use for filtering unwanted routes when
routes are added.
|
void |
setRouteFilterPattern(String include,
String exclude)
Used for filtering routes routes matching the given pattern, which
follows the following rules: - Match by route id - Match by route input
endpoint uri The matching is using exact match, by wildcard and regular
expression as documented by
PatternHelper.matchPattern(String, String). |
void |
setRuntimeCamelCatalog(org.apache.camel.catalog.RuntimeCamelCatalog runtimeCamelCatalog) |
void |
setRuntimeEndpointRegistry(org.apache.camel.spi.RuntimeEndpointRegistry runtimeEndpointRegistry) |
void |
setServiceCallConfiguration(ServiceCallConfigurationDefinition configuration)
Sets the default service call configuration
|
void |
setServiceCallConfigurations(List<ServiceCallConfigurationDefinition> configurations)
Sets the service call configurations
|
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 |
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 |
setTransformers(List<TransformerDefinition> transformers)
Sets the transformers that can be referenced in the routes.
|
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) |
void |
setValidators(List<ValidatorDefinition> validators)
Sets the validators that can be referenced in the routes.
|
void |
setXMLRoutesDefinitionLoader(org.apache.camel.spi.XMLRoutesDefinitionLoader xmlRoutesDefinitionLoader) |
void |
shutdown() |
void |
start() |
void |
startImmutable() |
void |
startRouteDefinitions()
Start all routes from this model.
|
void |
startRouteDefinitions(List<RouteDefinition> routeDefinitions) |
void |
stop() |
void |
suspend() |
protected volatile org.apache.camel.CamelContext delegate
protected LightweightCamelContext(org.apache.camel.CamelContext delegate)
public LightweightCamelContext()
ModelCamelContext using
DefaultRegistry as registry.
Use one of the other constructors to force use an explicit registry.public LightweightCamelContext(org.apache.camel.spi.BeanRepository repository)
CamelContext using the given BeanRepository
as first-choice repository, and the
SimpleRegistry as fallback, via the
DefaultRegistry implementation.repository - the bean repository.public LightweightCamelContext(org.apache.camel.spi.Registry registry)
ModelCamelContext using the given registryregistry - the registrypublic org.apache.camel.CamelContext getCamelContextReference()
public boolean isStarted()
isStarted in interface org.apache.camel.CamelContextLifecyclepublic boolean isStarting()
isStarting in interface org.apache.camel.CamelContextLifecyclepublic boolean isStopped()
isStopped in interface org.apache.camel.CamelContextLifecyclepublic boolean isStopping()
isStopping in interface org.apache.camel.CamelContextLifecyclepublic boolean isSuspended()
isSuspended in interface org.apache.camel.CamelContextLifecyclepublic boolean isRunAllowed()
isRunAllowed in interface org.apache.camel.CamelContextLifecyclepublic boolean isSuspending()
isSuspending in interface org.apache.camel.CamelContextLifecyclepublic void build()
build in interface org.apache.camel.CamelContextLifecyclepublic void suspend()
suspend in interface org.apache.camel.CamelContextLifecyclepublic void resume()
resume in interface org.apache.camel.CamelContextLifecyclepublic void shutdown()
shutdown in interface org.apache.camel.CamelContextLifecyclepublic void close() throws Exception
close in interface AutoCloseableclose in interface org.apache.camel.CamelContextLifecycleExceptionpublic <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 void start()
start in interface org.apache.camel.CamelContextLifecyclepublic void stop()
stop in interface org.apache.camel.CamelContextLifecyclepublic boolean isVetoStarted()
isVetoStarted in interface org.apache.camel.CamelContextpublic 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 nameStrategy)
setManagementNameStrategy in interface org.apache.camel.CamelContextpublic String getManagementName()
getManagementName in interface org.apache.camel.CamelContextpublic void setManagementName(String name)
setManagementName in interface org.apache.camel.CamelContextpublic String getVersion()
getVersion in interface org.apache.camel.CamelContextpublic org.apache.camel.ServiceStatus getStatus()
getStatus in interface org.apache.camel.CamelContextLifecyclepublic String getUptime()
getUptime in interface org.apache.camel.CamelContextpublic long getUptimeMillis()
getUptimeMillis in interface org.apache.camel.CamelContextpublic Date getStartDate()
getStartDate in interface org.apache.camel.CamelContextpublic 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.CamelContextExceptionpublic void addPrototypeService(Object object) throws Exception
addPrototypeService in interface org.apache.camel.CamelContextExceptionpublic 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 void addComponent(String componentName, org.apache.camel.Component component)
addComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.Component hasComponent(String componentName)
hasComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.Component getComponent(String componentName)
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 List<String> getComponentNames()
getComponentNames in interface org.apache.camel.CamelContextpublic org.apache.camel.Component removeComponent(String componentName)
removeComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.EndpointRegistry<? extends org.apache.camel.ValueHolder<String>> getEndpointRegistry()
getEndpointRegistry in interface org.apache.camel.CamelContextpublic 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 Collection<org.apache.camel.Endpoint> getEndpoints()
getEndpoints in interface org.apache.camel.CamelContext@Deprecated public 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 pattern) throws Exception
removeEndpoints in interface org.apache.camel.CamelContextExceptionpublic 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.Route> getRoutes()
getRoutes in interface org.apache.camel.CamelContextpublic int getRoutesSize()
getRoutesSize 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 addRoutes(org.apache.camel.RoutesBuilder builder) throws Exception
addRoutes in interface org.apache.camel.CamelContextExceptionpublic boolean removeRoute(String routeId) throws Exception
removeRoute in interface org.apache.camel.CamelContextExceptionpublic void addRoutePolicyFactory(org.apache.camel.spi.RoutePolicyFactory routePolicyFactory)
addRoutePolicyFactory in interface org.apache.camel.CamelContextpublic List<org.apache.camel.spi.RoutePolicyFactory> getRoutePolicyFactories()
getRoutePolicyFactories in interface org.apache.camel.CamelContextpublic void setRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration)
setRestConfiguration in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.RestConfiguration getRestConfiguration()
getRestConfiguration 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.CamelContextpublic org.apache.camel.TypeConverter getTypeConverter()
getTypeConverter in interface org.apache.camel.CamelContextpublic 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.Registry getRegistry()
getRegistry in interface org.apache.camel.CamelContextpublic <T> T getRegistry(Class<T> type)
getRegistry 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 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 org.apache.camel.spi.Language resolveLanguage(String language) throws org.apache.camel.NoSuchLanguageException
resolveLanguage in interface org.apache.camel.CamelContextorg.apache.camel.NoSuchLanguageExceptionpublic String resolvePropertyPlaceholders(String text)
resolvePropertyPlaceholders 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.CamelContext@Deprecated public List<String> getLanguageNames()
getLanguageNames in interface org.apache.camel.CamelContextpublic 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.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.CamelContextpublic org.apache.camel.spi.Transformer resolveTransformer(String model)
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 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 getValidatorRegistry()
getValidatorRegistry in interface org.apache.camel.CamelContextpublic void setGlobalOptions(Map<String,String> globalOptions)
setGlobalOptions in interface org.apache.camel.CamelContextpublic Map<String,String> getGlobalOptions()
getGlobalOptions in interface org.apache.camel.CamelContextpublic String getGlobalOption(String key)
getGlobalOption in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ClassResolver getClassResolver()
getClassResolver in interface org.apache.camel.CamelContextpublic void setClassResolver(org.apache.camel.spi.ClassResolver resolver)
setClassResolver in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ManagementStrategy getManagementStrategy()
getManagementStrategy in interface org.apache.camel.CamelContextpublic void setManagementStrategy(org.apache.camel.spi.ManagementStrategy strategy)
setManagementStrategy in interface org.apache.camel.CamelContextpublic void disableJMX() throws IllegalStateException
disableJMX in interface org.apache.camel.CamelContextIllegalStateExceptionpublic 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 ClassLoader getApplicationContextClassLoader()
getApplicationContextClassLoader in interface org.apache.camel.CamelContextpublic void setApplicationContextClassLoader(ClassLoader classLoader)
setApplicationContextClassLoader in interface org.apache.camel.CamelContextpublic 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.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.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 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 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.RuntimeEndpointRegistry getRuntimeEndpointRegistry()
getRuntimeEndpointRegistry in interface org.apache.camel.CamelContextpublic void setRuntimeEndpointRegistry(org.apache.camel.spi.RuntimeEndpointRegistry runtimeEndpointRegistry)
setRuntimeEndpointRegistry 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 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 void setBacklogTracing(Boolean backlogTrace)
setBacklogTracing in interface org.apache.camel.RuntimeConfigurationpublic Boolean isBacklogTracing()
isBacklogTracing in interface org.apache.camel.RuntimeConfigurationpublic void setDebugging(Boolean debugging)
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 void setLogExhaustedMessageBody(Boolean logExhaustedMessageBody)
setLogExhaustedMessageBody in interface org.apache.camel.RuntimeConfigurationpublic Boolean isLogExhaustedMessageBody()
isLogExhaustedMessageBody in interface org.apache.camel.RuntimeConfigurationpublic void setDelayer(Long delay)
setDelayer in interface org.apache.camel.RuntimeConfigurationpublic Long getDelayer()
getDelayer in interface org.apache.camel.RuntimeConfigurationpublic void setAutoStartup(Boolean autoStartup)
setAutoStartup in interface org.apache.camel.RuntimeConfigurationpublic Boolean isAutoStartup()
isAutoStartup in interface org.apache.camel.RuntimeConfigurationpublic void setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)
setShutdownRoute in interface org.apache.camel.RuntimeConfigurationpublic org.apache.camel.ShutdownRoute getShutdownRoute()
getShutdownRoute in interface org.apache.camel.RuntimeConfigurationpublic void setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
setShutdownRunningTask in interface org.apache.camel.RuntimeConfigurationpublic org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
getShutdownRunningTask 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 Boolean isCaseInsensitiveHeaders()
isCaseInsensitiveHeaders in interface org.apache.camel.RuntimeConfigurationpublic void setCaseInsensitiveHeaders(Boolean caseInsensitiveHeaders)
setCaseInsensitiveHeaders in interface org.apache.camel.RuntimeConfigurationprotected org.apache.camel.ExtendedCamelContext getExtendedCamelContext()
public void setName(String name)
setName in interface org.apache.camel.ExtendedCamelContextpublic void setRegistry(org.apache.camel.spi.Registry registry)
setRegistry in interface org.apache.camel.ExtendedCamelContextpublic void setupRoutes(boolean done)
setupRoutes in interface org.apache.camel.ExtendedCamelContextpublic boolean isSetupRoutes()
isSetupRoutes in interface org.apache.camel.ExtendedCamelContextpublic void registerEndpointCallback(org.apache.camel.spi.EndpointStrategy strategy)
registerEndpointCallback in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.Endpoint getPrototypeEndpoint(String uri)
getPrototypeEndpoint in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.Endpoint getPrototypeEndpoint(org.apache.camel.spi.NormalizedEndpointUri uri)
getPrototypeEndpoint in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.Endpoint hasEndpoint(org.apache.camel.spi.NormalizedEndpointUri uri)
hasEndpoint in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.Endpoint getEndpoint(org.apache.camel.spi.NormalizedEndpointUri uri)
getEndpoint in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.Endpoint getEndpoint(org.apache.camel.spi.NormalizedEndpointUri uri, Map<String,Object> parameters)
getEndpoint in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.NormalizedEndpointUri normalizeUri(String uri)
normalizeUri in interface org.apache.camel.ExtendedCamelContextpublic List<org.apache.camel.spi.RouteStartupOrder> getRouteStartupOrder()
getRouteStartupOrder in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.CamelBeanPostProcessor getBeanPostProcessor()
getBeanPostProcessor in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.ManagementMBeanAssembler getManagementMBeanAssembler()
getManagementMBeanAssembler in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.AsyncProcessor createMulticast(Collection<org.apache.camel.Processor> processors, ExecutorService executor, boolean shutdownExecutorService)
createMulticast in interface org.apache.camel.ExtendedCamelContextpublic 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 void setNodeIdFactory(org.apache.camel.spi.NodeIdFactory factory)
setNodeIdFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.NodeIdFactory getNodeIdFactory()
getNodeIdFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.ComponentResolver getComponentResolver()
getComponentResolver in interface org.apache.camel.ExtendedCamelContextpublic void setComponentResolver(org.apache.camel.spi.ComponentResolver componentResolver)
setComponentResolver in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.ComponentNameResolver getComponentNameResolver()
getComponentNameResolver in interface org.apache.camel.ExtendedCamelContextpublic void setComponentNameResolver(org.apache.camel.spi.ComponentNameResolver componentNameResolver)
setComponentNameResolver in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.LanguageResolver getLanguageResolver()
getLanguageResolver in interface org.apache.camel.ExtendedCamelContextpublic void setLanguageResolver(org.apache.camel.spi.LanguageResolver languageResolver)
setLanguageResolver in interface org.apache.camel.ExtendedCamelContextpublic 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.PackageScanClassResolver getPackageScanClassResolver()
getPackageScanClassResolver in interface org.apache.camel.ExtendedCamelContextpublic void setPackageScanClassResolver(org.apache.camel.spi.PackageScanClassResolver resolver)
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 resolver)
setPackageScanResourceResolver in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.FactoryFinder getDefaultFactoryFinder()
getDefaultFactoryFinder in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.FactoryFinder getFactoryFinder(String path)
getFactoryFinder in interface org.apache.camel.ExtendedCamelContextpublic void setFactoryFinderResolver(org.apache.camel.spi.FactoryFinderResolver resolver)
setFactoryFinderResolver in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.FactoryFinderResolver getFactoryFinderResolver()
getFactoryFinderResolver in interface org.apache.camel.ExtendedCamelContextpublic 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.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.DeferServiceFactory getDeferServiceFactory()
getDeferServiceFactory in interface org.apache.camel.ExtendedCamelContextpublic 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.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.ExtendedCamelContextpublic ScheduledExecutorService getErrorHandlerExecutorService()
getErrorHandlerExecutorService in interface org.apache.camel.ExtendedCamelContextpublic void addInterceptStrategy(org.apache.camel.spi.InterceptStrategy interceptStrategy)
addInterceptStrategy in interface org.apache.camel.ExtendedCamelContextpublic List<org.apache.camel.spi.InterceptStrategy> getInterceptStrategies()
getInterceptStrategies in interface org.apache.camel.ExtendedCamelContextpublic void setupManagement(Map<String,Object> options)
setupManagement in interface org.apache.camel.ExtendedCamelContextpublic 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 org.apache.camel.spi.AsyncProcessorAwaitManager getAsyncProcessorAwaitManager()
getAsyncProcessorAwaitManager in interface org.apache.camel.ExtendedCamelContextpublic void setAsyncProcessorAwaitManager(org.apache.camel.spi.AsyncProcessorAwaitManager manager)
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 org.apache.camel.spi.HeadersMapFactory getHeadersMapFactory()
getHeadersMapFactory in interface org.apache.camel.ExtendedCamelContextpublic void setHeadersMapFactory(org.apache.camel.spi.HeadersMapFactory factory)
setHeadersMapFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.ReactiveExecutor getReactiveExecutor()
getReactiveExecutor in interface org.apache.camel.ExtendedCamelContextpublic void setReactiveExecutor(org.apache.camel.spi.ReactiveExecutor reactiveExecutor)
setReactiveExecutor in interface org.apache.camel.ExtendedCamelContextpublic boolean isEventNotificationApplicable()
isEventNotificationApplicable in interface org.apache.camel.ExtendedCamelContextpublic void setEventNotificationApplicable(boolean eventNotificationApplicable)
setEventNotificationApplicable in interface org.apache.camel.ExtendedCamelContextpublic void setXMLRoutesDefinitionLoader(org.apache.camel.spi.XMLRoutesDefinitionLoader xmlRoutesDefinitionLoader)
setXMLRoutesDefinitionLoader in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.XMLRoutesDefinitionLoader getXMLRoutesDefinitionLoader()
getXMLRoutesDefinitionLoader in interface org.apache.camel.ExtendedCamelContextpublic void setModelToXMLDumper(org.apache.camel.spi.ModelToXMLDumper modelToXMLDumper)
setModelToXMLDumper in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.ModelToXMLDumper getModelToXMLDumper()
getModelToXMLDumper in interface org.apache.camel.ExtendedCamelContextpublic void setRestBindingJaxbDataFormatFactory(org.apache.camel.spi.RestBindingJaxbDataFormatFactory restBindingJaxbDataFormatFactory)
setRestBindingJaxbDataFormatFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.RestBindingJaxbDataFormatFactory getRestBindingJaxbDataFormatFactory()
getRestBindingJaxbDataFormatFactory in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.catalog.RuntimeCamelCatalog getRuntimeCamelCatalog()
getRuntimeCamelCatalog in interface org.apache.camel.ExtendedCamelContextpublic void setRuntimeCamelCatalog(org.apache.camel.catalog.RuntimeCamelCatalog runtimeCamelCatalog)
setRuntimeCamelCatalog in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.ConfigurerResolver getConfigurerResolver()
getConfigurerResolver in interface org.apache.camel.ExtendedCamelContextpublic void setConfigurerResolver(org.apache.camel.spi.ConfigurerResolver configurerResolver)
setConfigurerResolver in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.spi.RouteController getInternalRouteController()
getInternalRouteController in interface org.apache.camel.ExtendedCamelContextpublic void addRoute(org.apache.camel.Route route)
addRoute in interface org.apache.camel.ExtendedCamelContextpublic void removeRoute(org.apache.camel.Route route)
removeRoute in interface org.apache.camel.ExtendedCamelContextpublic org.apache.camel.Processor createErrorHandler(org.apache.camel.Route route, org.apache.camel.Processor processor) throws Exception
createErrorHandler in interface org.apache.camel.ExtendedCamelContextExceptionprotected org.apache.camel.CatalogCamelContext getCatalogCamelContext()
public String getComponentParameterJsonSchema(String componentName) throws IOException
getComponentParameterJsonSchema in interface org.apache.camel.CatalogCamelContextIOExceptionpublic String getDataFormatParameterJsonSchema(String dataFormatName) throws IOException
getDataFormatParameterJsonSchema in interface org.apache.camel.CatalogCamelContextIOExceptionpublic String getLanguageParameterJsonSchema(String languageName) throws IOException
getLanguageParameterJsonSchema in interface org.apache.camel.CatalogCamelContextIOExceptionpublic String getEipParameterJsonSchema(String eipName) throws IOException
getEipParameterJsonSchema in interface org.apache.camel.CatalogCamelContextIOExceptionprotected ModelCamelContext getModelCamelContext()
public List<RouteDefinition> getRouteDefinitions()
ModelgetRouteDefinitions in interface Modelpublic RouteDefinition getRouteDefinition(String id)
ModelgetRouteDefinition in interface Modelid - id of the routepublic void addRouteDefinitions(Collection<RouteDefinition> routeDefinitions) throws Exception
ModelCamelContext must have
an unique route id. If you use the API from CamelContext
or Model to add routes, then any new routes which has a route id
that matches an old route, then the old route is replaced by the new
route.addRouteDefinitions in interface ModelrouteDefinitions - the route(s) definition to addException - if the route definitions could not be added for
whatever reasonpublic void addRouteDefinition(RouteDefinition routeDefinition) throws Exception
ModelCamelContext must have
an unique route id. If you use the API from CamelContext
or Model to add routes, then any new routes which has a route id
that matches an old route, then the old route is replaced by the new
route.addRouteDefinition in interface ModelrouteDefinition - the route definition to addException - if the route definition could not be added for whatever
reasonpublic void removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions) throws Exception
ModelremoveRouteDefinitions in interface ModelrouteDefinitions - route(s) definitions to removeException - if the route definitions could not be removed for
whatever reasonpublic void removeRouteDefinition(RouteDefinition routeDefinition) throws Exception
ModelremoveRouteDefinition in interface ModelrouteDefinition - route definition to removeException - if the route definition could not be removed for
whatever reasonpublic List<RestDefinition> getRestDefinitions()
ModelgetRestDefinitions in interface Modelpublic void addRestDefinitions(Collection<RestDefinition> restDefinitions, boolean addToRoutes) throws Exception
ModeladdRestDefinitions in interface ModelrestDefinitions - the rest(s) definition to addaddToRoutes - whether the rests should also automatically be added
as routesException - if the rest definitions could not be created for
whatever reasonpublic void setDataFormats(Map<String,DataFormatDefinition> dataFormats)
ModelsetDataFormats in interface ModeldataFormats - the data formatspublic Map<String,DataFormatDefinition> getDataFormats()
ModelgetDataFormats in interface Modelpublic DataFormatDefinition resolveDataFormatDefinition(String name)
ModelresolveDataFormatDefinition in interface Modelname - the data format definition name or a reference to it in the
Registrypublic ProcessorDefinition<?> getProcessorDefinition(String id)
ModelgetProcessorDefinition in interface Modelid - id of the processor definitionpublic <T extends ProcessorDefinition<T>> T getProcessorDefinition(String id, Class<T> type)
ModelgetProcessorDefinition in interface Modelid - id of the processor definitiontype - the processor definition typepublic void setValidators(List<ValidatorDefinition> validators)
ModelsetValidators in interface Modelvalidators - the validatorspublic HystrixConfigurationDefinition getHystrixConfiguration(String id)
ModelgetHystrixConfiguration in interface Modelid - id of the configuration, or null to return the default
configurationpublic void setHystrixConfiguration(HystrixConfigurationDefinition configuration)
ModelsetHystrixConfiguration in interface Modelconfiguration - the configurationpublic void setHystrixConfigurations(List<HystrixConfigurationDefinition> configurations)
ModelsetHystrixConfigurations in interface Modelconfigurations - the configuration listpublic void addHystrixConfiguration(String id, HystrixConfigurationDefinition configuration)
ModeladdHystrixConfiguration in interface Modelid - name of the configurationconfiguration - the configurationpublic Resilience4jConfigurationDefinition getResilience4jConfiguration(String id)
ModelgetResilience4jConfiguration in interface Modelid - id of the configuration, or null to return the default
configurationpublic void setResilience4jConfiguration(Resilience4jConfigurationDefinition configuration)
ModelsetResilience4jConfiguration in interface Modelconfiguration - the configurationpublic void setResilience4jConfigurations(List<Resilience4jConfigurationDefinition> configurations)
ModelsetResilience4jConfigurations in interface Modelconfigurations - the configuration listpublic void addResilience4jConfiguration(String id, Resilience4jConfigurationDefinition configuration)
ModeladdResilience4jConfiguration in interface Modelid - name of the configurationconfiguration - the configurationpublic FaultToleranceConfigurationDefinition getFaultToleranceConfiguration(String id)
ModelgetFaultToleranceConfiguration in interface Modelid - id of the configuration, or null to return the default
configurationpublic void setFaultToleranceConfiguration(FaultToleranceConfigurationDefinition configuration)
ModelsetFaultToleranceConfiguration in interface Modelconfiguration - the configurationpublic void setFaultToleranceConfigurations(List<FaultToleranceConfigurationDefinition> configurations)
ModelsetFaultToleranceConfigurations in interface Modelconfigurations - the configuration listpublic void addFaultToleranceConfiguration(String id, FaultToleranceConfigurationDefinition configuration)
ModeladdFaultToleranceConfiguration in interface Modelid - name of the configurationconfiguration - the configurationpublic List<ValidatorDefinition> getValidators()
ModelgetValidators in interface Modelpublic void setTransformers(List<TransformerDefinition> transformers)
ModelsetTransformers in interface Modeltransformers - the transformerspublic List<TransformerDefinition> getTransformers()
ModelgetTransformers in interface Modelpublic ServiceCallConfigurationDefinition getServiceCallConfiguration(String serviceName)
ModelgetServiceCallConfiguration in interface ModelserviceName - name of service, or null to return the
default configurationpublic void setServiceCallConfiguration(ServiceCallConfigurationDefinition configuration)
ModelsetServiceCallConfiguration in interface Modelconfiguration - the configurationpublic void setServiceCallConfigurations(List<ServiceCallConfigurationDefinition> configurations)
ModelsetServiceCallConfigurations in interface Modelconfigurations - the configuration listpublic void addServiceCallConfiguration(String serviceName, ServiceCallConfigurationDefinition configuration)
ModeladdServiceCallConfiguration in interface ModelserviceName - name of the serviceconfiguration - the configurationpublic void startRouteDefinitions() throws Exception
ModelCamelContextstartRouteDefinitions in interface ModelCamelContextExceptionpublic void startRouteDefinitions(List<RouteDefinition> routeDefinitions) throws Exception
startRouteDefinitions in interface ModelCamelContextExceptionpublic void setRouteFilterPattern(String include, String exclude)
ModelPatternHelper.matchPattern(String, String). For example to only
include routes which starts with foo in their route id's, use:
include=foo* And to exclude routes which starts from JMS endpoints,
use: exclude=jms:* Exclude takes precedence over include.setRouteFilterPattern in interface Modelinclude - the include patternexclude - the exclude patternpublic void setRouteFilter(Function<RouteDefinition,Boolean> filter)
ModelsetRouteFilter in interface Modelfilter - the filterpublic Function<RouteDefinition,Boolean> getRouteFilter()
ModelgetRouteFilter in interface Modelpublic org.apache.camel.Expression createExpression(ExpressionDefinition definition)
createExpression in interface ModelCamelContextpublic org.apache.camel.Predicate createPredicate(ExpressionDefinition definition)
createPredicate in interface ModelCamelContextpublic RouteDefinition adviceWith(RouteDefinition definition, AdviceWithRouteBuilder builder) throws Exception
adviceWith in interface ModelCamelContextExceptionpublic void registerValidator(ValidatorDefinition validator)
registerValidator in interface ModelCamelContextpublic void registerTransformer(TransformerDefinition transformer)
registerTransformer in interface ModelCamelContextpublic void init()
init in interface org.apache.camel.CamelContextLifecyclepublic void startImmutable()
Apache Camel