A couple of things.  I think there are 3 types of containers:

1. The bean itself, with no proxy in front
2. A container per bean-type. (i.e. EJB)
3. A container per bean.

JBoss AOP is currently a container per bean-type.  I don't think it would be 
much work to have a container per bean.

BTW, I think you are looking at this in the wrong way.  Interceptors/Aspects 
should not be defined as part of the bean, but rather defined outside the bean, 
and bound in. (like in JBoss AOP).  Your examples above are the wrong approach. 
 THe reason being is that you want interceptors defined for different scopes.  
You may want an interceptor created as a singleton, per bean-type(per class), 
per instance, per joinpoint, per class per joinpoint, but have one 
configuration for it.

JBoss AOP aspects/interceptors are created via a pluggable factory.  This 
factory's api is createPerVM, createPerInstance, createPerClass, etc...

Bill

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861074#3861074

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861074


-------------------------------------------------------
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
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to