2 You should use reflection - init a class object, then a method in this class, and then invoke this method on an object with parameters. Remember to wrap the following snippet in block Hope it helps!
reflection - How do I invoke a Java method when given the method name ...
Quarkus will automatically register a class like yours for reflection if it is part of the method signature of a known integration point. For example, if the class is a return type of JAX-RS / Jakarta REST method, that type will automatically be registered for reflection
Reflection is the specific name for how .NET implements introspection. Other languages may call it something different (C++ calls its limited introspection RTTI, for run-time type information).
The information you can get back from RTTI isn't enough to do most of the things you'd actually want reflection for though. You can't iterate over the member functions of a class for example.
How can I add reflection to a C++ application? - Stack Overflow
What is reflection, and why is it useful? I'm particularly interested in Java, but I assume the principles are the same in any language.
java - What is reflection and why is it useful? - Stack Overflow
Duplicate "System.Reflection.Assembly...Attribute" CS0579 Asked 11 months ago Modified 10 months ago Viewed 854 times
I'd like to write a method which obtains the name of the calling method, and the name of the class containing the calling method. Is it possible with C# reflection?
How do I get the calling method name and type using reflection?
Java Reflection: How can I get the all getter methods of a java class and invoke them Asked 14 years, 4 months ago Modified 4 years, 3 months ago Viewed 123k times