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)
    • Method Detail

      • getClass

        default Class<?> getClass​(Class<?> declaringClass)
      • getInstance

        <T> ManagedInstance<T> getInstance​(Class<T> declaringClass)
        Obtain an instance of the requested class. Don't forget to call `destroyIfNecessary()` on it after use to avoid leaks!
      • isResolvable

        default boolean isResolvable​(Class<?> declaringClass)