ReturnT - The type of objects being instantiated.ObjectLoaderpublic interface IObjectLoader<ReturnT>
| Modifier and Type | Method | Description |
|---|---|---|
ReturnT |
loadInstance(java.lang.String className,
java.lang.Object... args) |
Uses dynamic class loading to load and instantiate a subclass or implementation of ReturnT given
a fully-qualified class name and an array (vararg) of input parameters.
|
ReturnT loadInstance(java.lang.String className, java.lang.Object... args)
className - The fully-qualified name of the desired class which must be assignable to the ReturnT type.args - a varargs of input parameter values for the constructor of classNamejava.lang.IllegalArgumentException - If no matching constructor can be found.