Interface TypeQualifier.Builder<T>

  • Type Parameters:
    T - The type of the service that the TypeQualifier targets
    Enclosing interface:
    TypeQualifier<T>

    public static interface TypeQualifier.Builder<T>
    Build TypeQualifier instances
    Author:
    cdivilly
    • Method Detail

      • isEmpty

        boolean isEmpty()
        Determine if this Builder has any qualifiers
        Returns:
        true if it does not have any qualifiers, false otherwise
      • named

        TypeQualifier.Builder<T> named​(java.lang.String name)
        Add or replace a Named qualifier
        Parameters:
        name - The name to match
        Returns:
        self
      • provides

        TypeQualifier.Builder<T> provides​(java.lang.Class<T> service)
        Match any type providing the specified service
        Parameters:
        service - The service to find implementations for
        Returns:
        self
      • qualifiers

        @Deprecated
        TypeQualifier.Builder<T> qualifiers​(java.lang.annotation.Annotation... qualifiers)
        Deprecated.
        Add the specified qualifiers
        Parameters:
        qualifiers - The Qualifiers to add
        Returns:
        self