[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Privileged Blocks Issue : JBAOP-675
anil.saldhana@jboss.com
do-not-reply at jboss.com
Thu Nov 20 15:50:24 EST 2008
I do not know what the dangers are of making the entire content of getAdvisor method in a privileged block. I have an inclination to suggest that.
Have you tried weaving in a block into the weaved class as:
| public WeavedClass
| {
|
| private static final Advisor aop$advisor$aop = SecurityActions.getAdvisor(AspectManager, this.getClass);
| ...
| }
|
or
| public WeavedClass
| {
|
| private static final Advisor aop$advisor$aop =
| AccessController.doPrivileged(new PrivilegedAction<Advisor>() {
| public Advisor run()
| {
| return AspectManager.instance().getAdvisor(this.getClass);
| }
| );
| ...
| }
|
Is that doable?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191039#4191039
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191039
More information about the jboss-dev-forums
mailing list