Call super class method automatically

前端 未结 4 1160
北海茫月
北海茫月 2021-01-17 17:27

Consider the following class

class A{
    public void init(){
        //do this first;
    }
    public void atEnd(){
        //do this after init of base cl         


        
4条回答
  •  庸人自扰
    2021-01-17 17:56

    Another thought would be to weave in an aspect. Add before and after advice to a pointcut.

提交回复
热议问题