ObjectFactory

interface ObjectFactory<T : Any>

Interface for factories that create new instances of objects. Provides a simple contract for object instantiation without specifying how objects are created.

Parameters

T

the type of object that will be created

Inheritors

Functions

Link copied to clipboard
abstract fun newInstance(): T

Creates a new instance of the object.