Package io.github.connellite.reflection
Class InstanceFactory
java.lang.Object
io.github.connellite.reflection.InstanceFactory
Creates instances without calling a constructor when Objenesis is present,
otherwise via
ReflectionUtil.getInstance(Class).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TnewInstance(Class<T> type) Creates an instance oftype.
-
Constructor Details
-
InstanceFactory
public InstanceFactory()
-
-
Method Details
-
newInstance
Creates an instance oftype. With Objenesis the constructor is not called. Without it, an accessible no-arg constructor is required.
-