Is it possible to add a hook to a meothd without changing the method? For example:
public class class1{
public void method1(){}
}
public class class2{
public void method2(){}
}
Now how can I execute method2() everytime when method1() is executed, without changing anything in class1?