@xrT said:
<FONT face=Tahoma>The first thing that comes to my mind is calling dynamic methods derived from some sort of configuration file...plugins perhaps? Although I haven't worked on plugin related apps yet so I have little idea on how it should be implemented.
Anyway, the function always returns a null object, why not just use void?
</FONT>
The configuration idea is plausible - what I don't get is why they didn't make the function just return the value returned by method.invoke(...), which would be null in the case of a void method, and something appropriate to the called method (if not void), as opposed to hard-wiring null and ignoring the return type in all cases ;)