Package oracle.dbtools.plugin.api.types
Interface TypeQualifier.Builder<T>
-
- Type Parameters:
T- The type of the service that theTypeQualifiertargets
- Enclosing interface:
- TypeQualifier<T>
public static interface TypeQualifier.Builder<T>BuildTypeQualifierinstances- Author:
- cdivilly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default TypeQualifier.Builder<T>any(java.lang.Class<?> service)TypeQualifier<T>build()Produce a newTypeQualifierinstancedefault TypeQualifier.Builder<T>exactType()Change the matching mode toTypeQualifier.MatchingMode.EXACT_TYPEbooleanisEmpty()Determine if this Builder has any qualifiersTypeQualifier.Builder<T>matchingMode(TypeQualifier.MatchingMode matchingMode)Configure how the type of the service is matchedTypeQualifier.Builder<T>named(java.lang.String name)Add or replace aNamedqualifierTypeQualifier.Builder<T>provides(java.lang.Class<T> service)Match any type providing the specified serviceTypeQualifier.Builder<T>qualifiers(java.lang.annotation.Annotation... qualifiers)Deprecated.
-
-
-
Method Detail
-
any
default TypeQualifier.Builder<T> any(java.lang.Class<?> service)
-
build
TypeQualifier<T> build()
Produce a newTypeQualifierinstance- Returns:
TypeQualifierinstance
-
exactType
default TypeQualifier.Builder<T> exactType()
Change the matching mode toTypeQualifier.MatchingMode.EXACT_TYPE- Returns:
- self
-
isEmpty
boolean isEmpty()
Determine if this Builder has any qualifiers- Returns:
- true if it does not have any qualifiers, false otherwise
-
matchingMode
TypeQualifier.Builder<T> matchingMode(TypeQualifier.MatchingMode matchingMode)
Configure how the type of the service is matched- Parameters:
matchingMode- The matching mode- Returns:
- self
-
named
TypeQualifier.Builder<T> named(java.lang.String name)
Add or replace aNamedqualifier- 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- TheQualifiers to add- Returns:
- self
-
-