[jboss-user] [JBoss AOP] - Re: How to refactor to set privilege access for diff package
flavia.rainone@jboss.com
do-not-reply at jboss.com
Tue Oct 21 00:17:01 EDT 2008
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
More information about the jboss-user
mailing list