Uses of Interface
org.apache.camel.Component
Package
Description
The core Camel API.
Service Provider Interfaces used by the Camel runtime which are plugin strategies.
-
Uses of Component in org.apache.camel
Modifier and TypeMethodDescription<T extends Component>
TCamelContext.getComponent
(String name, Class<T> componentType) Gets a component from the CamelContext by name and specifying the expected type of component.default <T extends Component>
TComponentAware.getComponent
(Class<T> type) Get theComponent
as the specified type.Modifier and TypeMethodDescriptionCamelContext.getComponent
(String componentName) Gets a component from the CamelContext by name.CamelContext.getComponent
(String name, boolean autoCreateComponents) Gets a component from the CamelContext by name.CamelContext.getComponent
(String name, boolean autoCreateComponents, boolean autoStart) Gets a component from the CamelContext by name.ComponentAware.getComponent()
Get theComponent
CamelContext.hasComponent
(String componentName) Is the given component already registered?CamelContext.removeComponent
(String componentName) Removes a previously added component.Modifier and TypeMethodDescriptionvoid
CamelContext.addComponent
(String componentName, Component component) Adds a component to the context.void
ComponentAware.setComponent
(Component component) Injects theComponent
static <T> T
Component.trySetComponent
(T object, Component component) Set theComponent
context if the component is an instance ofComponentAware
. -
Uses of Component in org.apache.camel.spi
Modifier and TypeClassDescriptionstatic class
ComponentCustomizer.Builder<T extends Component>
A fluent builder to create aComponentCustomizer
instance.Modifier and TypeMethodDescriptionstatic <T extends Component>
ComponentCustomizer.Builder<T> Create a typedComponentCustomizer.Builder
that can process a concrete component type instance.static <T extends Component>
ComponentCustomizerComponentCustomizer.forType
(Class<T> type, org.apache.camel.util.function.ThrowingConsumer<T, Exception> consumer) Create aComponentCustomizer
that can process a concrete component type instance.Modifier and TypeMethodDescriptionComponentResolver.resolveComponent
(String name, CamelContext context) Attempts to resolve the component for the given URIModifier and TypeMethodDescriptionstatic ComponentCustomizer.Builder
<Component> ComponentCustomizer.builder()
Create a genericComponentCustomizer.Builder
.Modifier and TypeMethodDescriptionvoid
Customize the specifiedComponent
.ManagementObjectStrategy.getManagedObjectForComponent
(CamelContext context, Component component, String name) ManagementObjectNameStrategy.getObjectNameForComponent
(Component component, String name) default boolean
Checks whether this customizer should be applied to the givenComponent
.void
LifecycleStrategy.onComponentAdd
(String name, Component component) Notification on adding anComponent
.void
LifecycleStrategy.onComponentRemove
(String name, Component component) Notification on removing anComponent
.Modifier and TypeMethodDescriptionComponentCustomizer.Builder.withCondition
(BiPredicate<String, Component> condition)