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