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 newOnComponentCondition
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(ConditionContext context)
Verifies if the condition matches.
-
-
-
Constructor Detail
-
OnComponentCondition
public OnComponentCondition(List<Class> types, boolean exists)
Creates a newOnComponentCondition
instance.- Parameters:
exists
-
-
-
Method Detail
-
matches
public boolean matches(ConditionContext context)
Verifies if the condition matches.- Specified by:
matches
in interfaceCondition
- Parameters:
context
- theConditionContext
.- Returns:
true
if the component matches this condition,false
otherwise.
-
-