Interface ComponentConditionalContext<T extends ComponentDescriptor>
-
- 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 interface ComponentConditionalContext<T extends ComponentDescriptor>
Interface to verify if a conditional component is enabled for a given context.- See Also:
Condition,ConditionContext,ConditionalDescriptorRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisEnable(ComponentFactory factory, T descriptor)Verify if this component is enabled for the given context.
-
-
-
Method Detail
-
isEnable
boolean isEnable(ComponentFactory factory, T descriptor)
Verify if this component is enabled for the given context.- Parameters:
factory- theComponentFactory; cannot benull.descriptor- theComponentDescriptor; cannot benull.- Returns:
trueif the compoenent is enable.
-
-