I have to create a class dynamically but I want to use class constructor passing parameter.
Currently my code looks like
Class<HsaInterface> _tempClass = (Class<HsaInterface>) Class.forName(hsaClass);
_tempClass.getDeclaredConstructor(String.class);
HsaInterface hsaAdapter = _tempClass.newInstance();
hsaAdapter.executeRequestTxn(txnData);
How can I call the constructor with the parameter ?