Class QualifierSelector

  • public class QualifierSelector
    extends Object
    This selector selects a best match based on qualifier annotations.

    A method is said to be marked with a qualifier annotation if the class in which it resides is annotated with a qualifier annotation or if the method itself is annotated with a qualifier annotation or both.


    1. If no qualifiers are requested in the selection criteria, then only candidate methods without any qualifier annotations remain in the list of potential candidates
    2. If multiple qualifiers (qualifedBy) are specified, then all of them need to be present at a candidate for it to match.
    3. If no candidate matches the required qualifiers, then all candidates are returned.
    Sjaak Derksen