Hi all During weekend heavilly developed (what? later :) ) with JBossAOP. Question by the code:
package my.demo; | /** @@my.root */ | public class RootClass | { | public RootClass() | { | //constructor here | //... | } | } | | jboss-aop.xml | <bind pointcut="execution(my.demo.*->@my.root)"> | <interceptor class="RootCreationInterceptor" /> | </bind> | I want to crosscut every constructor of class that has only been annotated with tag @@my.root for the class (not for the constructor). I don't want to annotate _every_ constructor inside class (which works with JBossAOP). I've also looked at tutorial at page about annotation introductions. It could also work for me, if I can _introduce_ annotation to constructors, by specifying only tag for the whole class. But annotation-introducionts seem not to work that way. Sth like that, doesn't work: | jboss-aop.xml: | <annotation-introduction expr="constructor(my.demo.*->new()) AND class(@my.root)"> | @my.root | </annotation-introduction> | Although, above doesn't make sense, I think. Are there any possibilities of solving my problem? Thanks, for help :) Tomasz View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845193#3845193 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845193 ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development