Class OnComponentCondition
- java.lang.Object
-
- io.streamthoughts.azkarra.api.components.condition.OnComponentCondition
-
- All Implemented Interfaces:
Condition,Predicate<ConditionContext>
public class OnComponentCondition extends Object implements Condition
-
-
Constructor Summary
Constructors Constructor Description OnComponentCondition(List<Class> types, boolean exists)Creates a newOnComponentConditioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(ConditionContext context)Verifies if the condition matches.
-
-
-
Constructor Detail
-
OnComponentCondition
public OnComponentCondition(List<Class> types, boolean exists)
Creates a newOnComponentConditioninstance.- Parameters:
exists-
-
-
Method Detail
-
matches
public boolean matches(ConditionContext context)
Verifies if the condition matches.- Specified by:
matchesin interfaceCondition- Parameters:
context- theConditionContext.- Returns:
trueif the component matches this condition,falseotherwise.
-
-