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 discovered
ComponentCustomizer
is invoked.
This interface is useful to implement enable/disable logic on a group of customizers.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic 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 Details
-
none
A simple deny-all policy.- Returns:
- false
-
any
A simple allow-all policy.- Returns:
- true
-