@FunctionalInterface public interface DataFormatCustomizer extends Ordered
DataFormat instances.| Modifier and Type | Interface and Description |
|---|---|
static class |
DataFormatCustomizer.Builder<T extends DataFormat>
A fluent builder to create a
DataFormatCustomizer instance. |
static interface |
DataFormatCustomizer.Policy
Used as additional filer mechanism to control if customizers need to be applied or not.
|
| Modifier and Type | Method and Description |
|---|---|
static DataFormatCustomizer.Builder<DataFormat> |
builder()
Create a generic
DataFormatCustomizer.Builder. |
static <T extends DataFormat> |
builder(Class<T> type)
Create a typed
DataFormatCustomizer.Builder that can process a concrete data format type instance. |
void |
configure(String name,
DataFormat target)
Customize the specified
DataFormat. |
static <T extends DataFormat> |
forType(Class<T> type,
org.apache.camel.util.function.ThrowingConsumer<T,Exception> consumer)
Create a
DataFormatCustomizer that can process a concrete data format type instance. |
default int |
getOrder()
Gets the order.
|
default boolean |
isEnabled(String name,
DataFormat target)
Checks whether this customizer should be applied to the given
DataFormat. |
static DataFormatCustomizer.Builder<DataFormat> builder()
DataFormatCustomizer.Builder.DataFormatCustomizer.Builderstatic <T extends DataFormat> DataFormatCustomizer.Builder<T> builder(Class<T> type)
DataFormatCustomizer.Builder that can process a concrete data format type instance.type - the concrete type of the ComponentComponentCustomizer.Builderstatic <T extends DataFormat> DataFormatCustomizer forType(Class<T> type, org.apache.camel.util.function.ThrowingConsumer<T,Exception> consumer)
DataFormatCustomizer that can process a concrete data format type instance.type - the concrete type of the DataFormatconsumer - the DataFormat configuration logicDataFormatCustomizervoid configure(String name, DataFormat target)
DataFormat.name - the unique name of the data formattarget - the data format to configuredefault boolean isEnabled(String name, DataFormat target)
DataFormat.name - the unique name of the data formattarget - the data format to configuredefault int getOrder()
OrderedInteger.MAX_VALUE or eg Ordered.LOWEST.Apache Camel