Skip to main content
Version: 6.2.5

Selector

Selectors filter classpath-discovered factories.

Factory methods​

Use package, class, and tag regex selectors, plus boolean composition:

import org.paramixel.api.selector.Selector;

var smoke = Selector.tagRegex("smoke");
var checkout = Selector.classRegex("Checkout");
var selected = Selector.and(smoke, checkout);

Regex selectors use Java regex matches() semantics. The regex must match the entire candidate string. To match substrings, use wildcards such as .*Checkout.*.

Configuration equivalents​

paramixel.match.package.regex=com\.example.*
paramixel.match.class.regex=.*Checkout.*
paramixel.match.tag.regex=smoke

Use Runner.run(selector) or Runner.runAndReturnExitCode(selector) for programmatic discovery runs.