"[EMAIL PROTECTED]" wrote : The idea of DESCRIBE is that it is not done until we know we have the class | available, here we can read the annotations. |
Can you see why a getMetaData method needs to be on the joinpoint now? The pointcut expressions match on joinpoints, not invocations. We can't bind the aspects until we know the joinpoints of the class, bean, or container we're dealing with. We don't know the dependencies until the aspect definitions have been bound. And finally, the aspect we're binding may be scope limited (PER_CLASS) meaing only one aspect per type should be created. This can be implemented much easier, if the AspectFactory itself can query the bean, class, container for metadata and have a Kernel API that allows it to register dependencies or schedule additional aspect instantiations based on the scope of the aspec t(PER_CLASS, PER_INSTANCE, PER_JOINPOINT) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861492#3861492 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861492 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
