Class ReflectionUtils
java.lang.Object
net.uku3lig.ukulib.utils.ReflectionUtils
Utility class for reflection
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Serializable>
TnewInstance(Class<T> klass) Creates an instance of a given config class.
-
Method Details
-
newInstance
Creates an instance of a given config class. Only works if the class has a public, no-arg constructor.- Type Parameters:
T- The type of the class- Parameters:
klass- The class to be instantiated- Returns:
- An instance of the class
- See Also:
-