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 discoveredDataFormatCustomizer
is invoked. This interface is useful to implement enable/disable logic on a group of customizers.
-
-
Method Summary
Static Methods Modifier and Type Method Description static 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 Detail
-
none
static DataFormatCustomizer.Policy none()
A simple deny-all policy.- Returns:
- false
-
any
static DataFormatCustomizer.Policy any()
A simple allow-all policy.- Returns:
- true
-
-