Interface DetectorFactoryChooser
public interface DetectorFactoryChooser
Predicate for choosing DetectorFactory objects.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanchoose(DetectorFactory factory) Return whether or not given DetectorFactory should be chosen.voidenable(DetectorFactory factory) Forcibly enable the factory due to ordering constraints with other enabled detectors, if the factory would not otherwise be chosen bychoose(DetectorFactory).default booleanwasForciblyEnabled(DetectorFactory factory) Check whether the given factory was forcibly enabled viaenable(DetectorFactory)byExecutionPlan.build()
-
Method Details
-
choose
Return whether or not given DetectorFactory should be chosen.- Parameters:
factory- the DetectorFactory- Returns:
- true if the DetectorFactory should be chosen, false if not
-
enable
Forcibly enable the factory due to ordering constraints with other enabled detectors, if the factory would not otherwise be chosen bychoose(DetectorFactory).- Parameters:
factory-
-
wasForciblyEnabled
Check whether the given factory was forcibly enabled viaenable(DetectorFactory)byExecutionPlan.build()- Parameters:
factory- the DetectorFactory to check, not null- Returns:
- returns false by default
- See Also:
-