Class InstanceProvider
java.lang.Object
io.taktx.client.InstanceProvider
A utility class to provide instances of classes based on the runtime environment (Quarkus,
Spring, or plain Java).
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TgetInstance(Class<T> clazz) Get an instance of the specified class based on the runtime environment.
-
Method Details
-
getInstance
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
-