Hidendra/LWC — pull request #356 by basicsensei (2012-06-27 05:20:17+00:00)
Title: user defined modules would not register if they only implemented Module

fix modules woulregistering even if they only implement Module and don't extend JavaModule
previously, it would only work if MyModule extends JavaModule
but not if MyModule implements Module
this now allows the latter too

the comments can safely be discarded in the commit, and just use the easy way:)

Method[] methods = superclass.getDeclaredMethods();
superclass is Object.class when MyModule implements Module without extending ie. JavaModule
thus the methods from Module interface would not be seen and no overrides would be detected => no event handlers would be registered

Thanks.