TL;DR: A hybrid method to implement Role Object pattern based on AOP technology was presented, and compared with the object-oriented method, the advantages of AOP were addressed.
Abstract: Role Object Pattern is the most common design pattern used to implement Role Model. However, there are some inherent flaws in the implementation of Role Object pattern with OOP, such as tangle and scatter, complex object identity and interface bloat or downcasting. A hybrid method to implement Role Object pattern based on AOP technology was presented. Compared with the object-oriented method, the advantages of AOP were addressed.