Package org.apache.camel.spi
Interface LanguageCustomizer.Policy
-
- All Superinterfaces:
BiPredicate<String,Language>
- Enclosing interface:
- LanguageCustomizer
- 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 LanguageCustomizer.Policy extends BiPredicate<String,Language>
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 discoveredLanguageCustomizer
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 LanguageCustomizer.Policy
any()
A simple allow-all policy.static LanguageCustomizer.Policy
none()
A simple deny-all policy.-
Methods inherited from interface java.util.function.BiPredicate
and, negate, or, test
-
-
-
-
Method Detail
-
none
static LanguageCustomizer.Policy none()
A simple deny-all policy.- Returns:
- false
-
any
static LanguageCustomizer.Policy any()
A simple allow-all policy.- Returns:
- true
-
-