Module io.ebean.api

Class Lookups

java.lang.Object
io.ebean.plugin.Lookups

public final class Lookups extends Object
Provides Lookup instances using potentially module specific Lookups.
  • Constructor Details

    • Lookups

      public Lookups()
  • Method Details

    • getLookup

      public static MethodHandles.Lookup getLookup(Class<?> type)
      Return a Lookup ideally for the module associated with the given type.
    • newDefaultInstance

      public static <T> T newDefaultInstance(Class<?> type) throws Throwable
      Find the default constructor and return a new instance for the given type potentially using a module specific Lookup instance.
      Throws:
      Throwable