Package org.apache.camel.spi
Interface DataFormatCustomizer.Policy
- All Superinterfaces:
BiPredicate<String,
DataFormat>
- Enclosing interface:
DataFormatCustomizer
- 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 static interface DataFormatCustomizer.Policy
extends BiPredicate<String,DataFormat>
Used as additional filer mechanism to control if customizers need to be applied or not. Each of this filter is
applied before any of the discovered
DataFormatCustomizer
is invoked.
This interface is useful to implement enable/disable logic on a group of customizers.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic DataFormatCustomizer.Policy
any()
A simple allow-all policy.static DataFormatCustomizer.Policy
none()
A simple deny-all policy.Methods inherited from interface java.util.function.BiPredicate
and, negate, or, test
-
Method Details
-
none
A simple deny-all policy.- Returns:
- false
-
any
A simple allow-all policy.- Returns:
- true
-