With AOP, it is possible to do this without refactoring classes in com.a. You can use declaration of error/warning messages. This is how it works:
http://www.jboss.org/jbossaop/docs/1.5.0.GA/docs/aspect-framework/examples/declare/declare.html It is configurable, because you just need to edit the pointcut expression used inside the declare-error tag to change the rules. This can also be done with annotations instead of xml: http://www.jboss.org/jbossaop/docs/1.5.0.GA/docs/aspect-framework/examples/annotated-declare/annotated-declare.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183378#4183378 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183378 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user