Invoking a method in some module class from within a plugin

Suppose I need to call some method in one of the modules of my project from a plugin.

How do I do that? I can aquire the modelue by name but don't know what then

1 comment
Comment actions Permalink

If you mean that you need to invoke a method on a class which is part of your module's source code, it's not a trivial thing to do. You need to compile the module, locate the class in the output directory, load it from there and then call the method via reflection.


Please sign in to leave a comment.