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