public interface IInstantiator
When methods in this package detect, that they have to generate a new instance of a type this CallBack will be used.
This mainly applies to the connectThrough-Function.
| Modifier and Type | Method and Description |
|---|---|
int |
createInstance(TypeReference type,
java.lang.Object... instantiatorArgs)
Create an instance of type.
|
int createInstance(TypeReference type, java.lang.Object... instantiatorArgs)
The varArgs argument gets passed through from functions like connectThrough (which have varArgs as well) to the instantiatior.
type - Type to generate an instance frominstantiatorArgs - passed through utility functions