Class InstanceProvider

java.lang.Object
io.taktx.client.InstanceProvider

public class InstanceProvider extends Object
A utility class to provide instances of classes based on the runtime environment (Quarkus, Spring, or plain Java).
  • Method Details

    • getInstance

      public static <T> T getInstance(Class<T> clazz)
      Get an instance of the specified class based on the runtime environment.
      Type Parameters:
      T - the type of the class
      Parameters:
      clazz - the class to get an instance of
      Returns:
      an instance of the specified class