ClassFactory

Magic that creates instances of arbitrary concrete classes. Derived from Gson's UnsafeAllocator and ConstructorConstructor classes.

Author

Jesse Wilson

abstract class ClassFactory<T>

Functions

get
Link copied to clipboard
open fun <T> get(rawType: Class<out Any>): ClassFactory<T>
newInstance
Link copied to clipboard
abstract fun newInstance(): T