Package | Description |
---|---|
org.apache.camel |
The core Camel API.
|
org.apache.camel.spi |
Service Provider Interfaces used by the Camel runtime which are plugin strategies.
|
Modifier and Type | Method and Description |
---|---|
default <T extends Component> |
ComponentAware.getComponent(Class<T> type)
Get the
Component as the specified type. |
<T extends Component> |
CamelContext.getComponent(String name,
Class<T> componentType)
Gets a component from the CamelContext by name and specifying the expected type of component.
|
Modifier and Type | Method and Description |
---|---|
Component |
ComponentAware.getComponent()
Get the
Component |
Component |
CamelContext.getComponent(String componentName)
Gets a component from the CamelContext by name.
|
Component |
CamelContext.getComponent(String name,
boolean autoCreateComponents)
Gets a component from the CamelContext by name.
|
Component |
CamelContext.getComponent(String name,
boolean autoCreateComponents,
boolean autoStart)
Gets a component from the CamelContext by name.
|
Component |
CamelContext.hasComponent(String componentName)
Is the given component already registered?
|
Component |
CamelContext.removeComponent(String componentName)
Removes a previously added component.
|
Modifier and Type | Method and Description |
---|---|
void |
CamelContext.addComponent(String componentName,
Component component)
Adds a component to the context.
|
void |
ComponentAware.setComponent(Component component)
Injects the
Component |
static <T> T |
Component.trySetComponent(T object,
Component component)
Set the
Component context if the component is an instance of ComponentAware . |
Modifier and Type | Class and Description |
---|---|
static class |
ComponentCustomizer.Builder<T extends Component>
A fluent builder to create a
ComponentCustomizer instance. |
Modifier and Type | Method and Description |
---|---|
static <T extends Component> |
ComponentCustomizer.builder(Class<T> type)
Create a typed
ComponentCustomizer.Builder that can process a concrete component type instance. |
static <T extends Component> |
ComponentCustomizer.forType(Class<T> type,
org.apache.camel.util.function.ThrowingConsumer<T,Exception> consumer)
Create a
ComponentCustomizer that can process a concrete component type instance. |
Modifier and Type | Method and Description |
---|---|
Component |
ComponentResolver.resolveComponent(String name,
CamelContext context)
Attempts to resolve the component for the given URI
|
Modifier and Type | Method and Description |
---|---|
static ComponentCustomizer.Builder<Component> |
ComponentCustomizer.builder()
Create a generic
ComponentCustomizer.Builder . |
Modifier and Type | Method and Description |
---|---|
void |
ComponentCustomizer.configure(String name,
Component target)
Customize the specified
Component . |
Object |
ManagementObjectStrategy.getManagedObjectForComponent(CamelContext context,
Component component,
String name) |
ObjectName |
ManagementObjectNameStrategy.getObjectNameForComponent(Component component,
String name) |
default boolean |
ComponentCustomizer.isEnabled(String name,
Component target)
Checks whether this customizer should be applied to the given
Component . |
void |
LifecycleStrategy.onComponentAdd(String name,
Component component)
Notification on adding an
Component . |
void |
LifecycleStrategy.onComponentRemove(String name,
Component component)
Notification on removing an
Component . |
Modifier and Type | Method and Description |
---|---|
ComponentCustomizer.Builder<T> |
ComponentCustomizer.Builder.withCondition(BiPredicate<String,Component> condition) |
Apache Camel