Package io.smallrye.graphql.spi
Interface LookupService
- All Known Implementing Classes:
LookupService.DefaultLookupService
public interface LookupService
Lookup service that allows multiple DI frameworks to use this.
By default, plain old reflection will be used.
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Andy McCright (andymc@us.ibm.com)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDefault Lookup service that gets used when none is provided with SPI.static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LookupServicestatic final ServiceLoader<LookupService> -
Method Summary
Modifier and TypeMethodDescriptionstatic LookupServiceget()default Class<?> <T> ManagedInstance<T> getInstance(Class<T> declaringClass) Obtain an instance of the requested class.getName()default booleanisResolvable(Class<?> declaringClass) static LookupServiceload()
-
Field Details
-
lookupServices
-
lookupService
-
-
Method Details
-
get
-
load
-
getName
String getName() -
getClass
-
getInstance
Obtain an instance of the requested class. Don't forget to call `destroyIfNecessary()` on it after use to avoid leaks! -
isResolvable
-