how to intercept static method in java

3.2k views Asked by At
    public class Test{
            public static void say(String hello){
                 System.out.println(hello);
            }
     }

Class Test has a static method 'say', how can I intercept this static method? Is there a way to work by using InvocationHandler?

Thanks in advance

0

There are 0 answers