public interface ComponentCustomizer<T extends org.apache.camel.Component>
| Modifier and Type | Method and Description |
|---|---|
default <T> void |
consumeOption(org.apache.camel.CamelContext camelContext,
Map<String,Object> options,
String name,
Class<T> type,
Consumer<T> consumer)
Removes the option with the given name and invokes the consumer performing
property placeholders resolution and type conversion.
|
default void |
consumeOption(Map<String,Object> options,
String name,
Consumer<Object> consumer) |
void |
customize(T component,
Map<String,Object> options)
Customize the specified
Component. |
void customize(T component, Map<String,Object> options)
Component. The customizer has to
remove remove customizer specific properties once they are consumed.component - the component to customizeoptions - the component optionsdefault void consumeOption(Map<String,Object> options, String name, Consumer<Object> consumer)
default <T> void consumeOption(org.apache.camel.CamelContext camelContext,
Map<String,Object> options,
String name,
Class<T> type,
Consumer<T> consumer)
throws Exception
ExceptionCopyright © 2016–2019 Red Hat. All rights reserved.