Interface ComponentCustomizer

All Superinterfaces:
Ordered
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ComponentCustomizer extends Ordered
Strategy for applying custom configuration to Component instances as they are created.

Customizers are discovered from the Registry and applied to each component during bootstrap, with isEnabled(String, Component) (and an optional ComponentCustomizer.Policy) deciding whether a given component is customized, and Ordered controlling the order. Use the builder() / forType(Class, ThrowingConsumer) helpers to target a concrete component type. This is the component-level counterpart to CamelContextCustomizer.

See CamelContext auto-configuration in the Camel user manual.

See Also: