Re: Re: new XML configuration
Jon Tirsén <[email protected]> Sun, 11 May 2003 19:49:44 +0200 (CEST)
| Newsgroups | gmane.comp.java.nanning.devel |
|---|---|
| Message-ID | <[email protected]> |
Problem is that it's not AOP. According to the "principles of AOP" the aspects should define the places they should apply to and not the other way around. This increases modularity of an aspect and eases maintainence. The extension of specifying "local" aspects isn't strictly AOP and excessive use of it will probably cause problems. The <interceptor>-tag is a shortcut for <aspect class="com.tirsen.nanning.config.InterceptorAspect> so it's actually an aspect and the body of the aspect is going to be parsed by that aspect. The <pointcut>-tag will probably initally contain one of: <attribute> name of attribute, or <method-name> regexp for name of method. I could add some examples for that. It will probably be extensible by other custom pointcuts. Possibly even to add logical operators like <and> and <or> and so on. This would make it very close to Aspect/J. --- Eric Jain <[email protected]> skrev: > > Okay, I've started designing the XML configuration > format. > > Looks good... > > Perhaps instead of having global 'applies to all' > semantics for top > level <interceptor> and <mixin> (?) elements, > explicit references would > be more flexible - no need to redeclare interceptors > that apply to most > but not all classes (or is there an other way to > achieve this?). > > <class ...> > <interceptor ref="..."/> > </class> > > Also, further examples for the <pointcut> element > would be interesting. > > > -- > Eric Jain > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, > 2003, Santa Clara > The only event dedicated to issues related to Linux > enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Nanning-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nanning-developer _____________________________________________________ Gå före i kön och få din sajt värderad på nolltid med Yahoo! Express Se mer på: http://se.docs.yahoo.com/info/express/help/index.html ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com