How to intercept a method in java
问题 Here is the method: public static boolean startModule(Module mod, ServletContext servletContext, boolean delayContextRefresh) Here is the method call in a java file: WebModuleUtil.startModule(module, getServletContext(), false); I cannot make any changes to these files, but I want to intercept the method and add some of my code (I want access to the parameters as well) Code I wrote in another java file but not successful: public void main(String[] args) throws Exception { Module module = null