[jboss-user] [JBoss AOP] - annotation-introduction + aspect oriented annotations
fabiocsilva
do-not-reply at jboss.com
Tue Nov 28 20:38:15 EST 2006
I would like to use the feature "annotation-introduction" to introduce annotation in constructors and to capture them in "bind". For example:
|
| <annotation-introduction expr="constructor(gui.complaints.*->new())">
| @util.SystemRecord
| </annotation-introduction>
|
| <bind pointcut="call(@util.SystemRecord->new(..))">
| <interceptor class="aspects.SystemRecordInterceptor"/>
| </bind>
|
|
But
1 - The form @util.SystemRecord->new (..) to mark the constructors it is not executing, only the form *->@util.SystemRecord (..)
2 - The form *->@util.SystemRecord (..) it seems not to be affected by annotation-introduction
How to make these features to work together?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989542#3989542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989542
More information about the jboss-user
mailing list