Instantiator
Simple factory used to instantiate objects by injecting available parameters.
Author
Phillip Webb
Scott Frederick
Since
2.4.0
Parameters
<T>
the type to instantiate
Constructors
Link copied to clipboard
Create a new Instantiator instance for the given type.
constructor(type: Class<out Any>, availableParameters: Consumer<Instantiator.AvailableParameters>, failureHandler: Instantiator.FailureHandler)
Create a new Instantiator instance for the given type.
Types
Link copied to clipboard
interface AvailableParameters
Callback used to register available parameters.
Link copied to clipboard
interface FailureHandler
Strategy for handling a failure that occurs when instantiating a type.