mardi 3 mars 2015

call to method.invoke with variable number of arguments

Having



public Object callRemote (String sRemoteInterface, String sMethod,
Object... arguments);


I want to do something like:



method.invoke(
instance,
arguments...,
sessionId
);


So it works for methods with a variable number of arguments.


How can I do it?






Aucun commentaire:

Enregistrer un commentaire