What is a short example of inter-type declarations in AspectJ which demonstrates the usefulness of the approach?

前端 未结 3 853
梦谈多话
梦谈多话 2020-12-09 12:37

I first thought about using ITDs to define the private static final Logger logger = ... for some unrelated cases, but it doesn\'t look enough like an obvious im

3条回答
  •  盖世英雄少女心
    2020-12-09 13:13

    Take a look at Spring ROO. It is a rapid dev. env using Spring. I see it as a Ruby on Rails but in java with Spring ;-)

    It use ITD a lot to generate getter, setter, toString etc... based on the attributes you define when you create your Class.

    Spring Roo

提交回复
热议问题