Package oracle.dbtools.plugin.api.types
Interface TypeLocator
-
- All Known Implementing Classes:
TypeReflections
public interface TypeLocatorService for selectingTypeReflectioninstances- Since:
- 19.3.0
- Author:
- cdivilly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> TypeReflection<T>forType(java.lang.Class<T> type)Find match for the specified typedefault <T> TypeReflection<T>get(java.lang.Class<T> type)Synonym forforType(Class)<T> java.util.Set<TypeReflection<? extends T>>selectType(TypeQualifier<T> service)Choose theTypeReflections that matches the specified criteria
-
-
-
Method Detail
-
forType
default <T> TypeReflection<T> forType(java.lang.Class<T> type) throws java.lang.IllegalArgumentException
Find match for the specified type- Type Parameters:
T- The type of the service- Parameters:
type- The type to search for- Returns:
TypeReflectioninstance- Throws:
java.lang.IllegalArgumentException- if the specified type is not part of this set
-
get
default <T> TypeReflection<T> get(java.lang.Class<T> type) throws java.lang.IllegalArgumentException
Synonym forforType(Class)- Type Parameters:
T- The type of the service- Parameters:
type- The type to search for- Returns:
TypeReflectioninstance- Throws:
java.lang.IllegalArgumentException- if the specified type is not part of this set
-
selectType
<T> java.util.Set<TypeReflection<? extends T>> selectType(TypeQualifier<T> service)
Choose theTypeReflections that matches the specified criteria- Type Parameters:
T- The type of the service to find- Parameters:
service- The qualifiers on the service- Returns:
Setof matchingTypeReflectioninstances
-
-