Package io.smallrye.graphql.spi
Class LookupService.DefaultLookupService
- java.lang.Object
-
- io.smallrye.graphql.spi.LookupService.DefaultLookupService
-
- All Implemented Interfaces:
LookupService
- Enclosing interface:
- LookupService
public static class LookupService.DefaultLookupService extends Object implements 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 Constructor Description DefaultLookupService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ManagedInstance<T>
getInstance(Class<T> declaringClass)
Obtain an instance of the requested class.String
getName()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.graphql.spi.LookupService
getClass, isResolvable
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceLookupService
-
getInstance
public <T> ManagedInstance<T> getInstance(Class<T> declaringClass)
Description copied from interface:LookupService
Obtain an instance of the requested class. Don't forget to call `destroyIfNecessary()` on it after use to avoid leaks!- Specified by:
getInstance
in interfaceLookupService
-
-