public class ClassWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
Object |
Instance
The instance created
|
Class<?> |
ModuleClass
The class loaded
|
| Constructor and Description |
|---|
ClassWrapper(Map<String,IParameter> Params)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
Instantiate(String ModuleName,
Constructor ConstructorToUse)
Creates a new instance of the provided class
|
void |
Invoke(Method MethodToInvoke)
Invokes a method of the created instance if the class was instantiated or a static
method if no instantiation was performed
|
public Object Instance
public Class<?> ModuleClass
public ClassWrapper(Map<String,IParameter> Params)
Params - The parameters that are available and can be used to retrieve and set valuespublic void Instantiate(String ModuleName, Constructor ConstructorToUse) throws Exception
ModuleName - The class that should be instantiatedConstructorToUse - The constructor of the class to useException - The instantiation could not be performedCopyright © 2018. All Rights Reserved.