Type: @Nullable
public
static
<X>
DelayedInstantiation<X>
Create a new delayed instantiation to instantiate a class using reflection.
Parameter Name | Description |
---|---|
tClass | The class to instantiate. |
args | Class types of the arguments in the class's constructor. |
The class to be instantiated. |
Returned Value: The created DelayedInstantiation
object.
Type: public
DelayedInstantiation<T>
Specify a custom Instantiator
instance to create the class.
Parameter Name | Description |
---|---|
instantiator | The interface to use to instantiate the class. |
Returned Value: "This" instantiation instance, for method chaining.
Type: @Nullable
public
T
Instantiate the class, using reflection.
Parameter Name | Description |
---|---|
args | Arguments to pass to the constructor. |
Returned Value: The instantiated class, or null if the instantiation failed.
Type: public
Class<T>
Get the type class of the delayed instantiation.
Returned Value: The class to be instantiated.
Type: public
String
Get the name of the type class for the delayed instantiation.
Returned Value: The (string) name of the class to be instantiated.