Package io.smallrye.graphql.spi
Class LookupService.DefaultLookupService
java.lang.Object
io.smallrye.graphql.spi.LookupService.DefaultLookupService
- All Implemented Interfaces:
LookupService
- Enclosing interface:
LookupService
Default Lookup service that gets used when none is provided with SPI.
This use reflection
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.smallrye.graphql.spi.LookupService
LookupService.DefaultLookupService, LookupService.DefaultManagedInstance<T> -
Field Summary
Fields inherited from interface io.smallrye.graphql.spi.LookupService
lookupService, lookupServices -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> ManagedInstance<T> getInstance(Class<T> declaringClass) Obtain an instance of the requested class.getName()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.graphql.spi.LookupService
getClass, isResolvable
-
Constructor Details
-
DefaultLookupService
public DefaultLookupService()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceLookupService
-
getInstance
Description copied from interface:LookupServiceObtain an instance of the requested class. Don't forget to call `destroyIfNecessary()` on it after use to avoid leaks!- Specified by:
getInstancein interfaceLookupService
-