Class CdiLookupService

java.lang.Object
io.smallrye.graphql.cdi.CdiLookupService
All Implemented Interfaces:
io.smallrye.graphql.spi.LookupService

public class CdiLookupService extends Object implements io.smallrye.graphql.spi.LookupService
Lookup service that gets the beans via CDI
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.smallrye.graphql.spi.LookupService

    io.smallrye.graphql.spi.LookupService.DefaultLookupService, io.smallrye.graphql.spi.LookupService.DefaultManagedInstance<T>
  • Field Summary

    Fields inherited from interface io.smallrye.graphql.spi.LookupService

    lookupService, lookupServices
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getClass(Class<?> declaringClass)
     
    <T> io.smallrye.graphql.spi.ManagedInstance<T>
    getInstance(Class<T> declaringClass)
     
     
    boolean
    isResolvable(Class<?> declaringClass)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CdiLookupService

      public CdiLookupService()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface io.smallrye.graphql.spi.LookupService
    • getClass

      public Class<?> getClass(Class<?> declaringClass)
      Specified by:
      getClass in interface io.smallrye.graphql.spi.LookupService
    • getInstance

      public <T> io.smallrye.graphql.spi.ManagedInstance<T> getInstance(Class<T> declaringClass)
      Specified by:
      getInstance in interface io.smallrye.graphql.spi.LookupService
    • isResolvable

      public boolean isResolvable(Class<?> declaringClass)
      Specified by:
      isResolvable in interface io.smallrye.graphql.spi.LookupService