Re: Re: Re: How to set interceptor attributes

Jon Tirsén <[email protected]> Fri, 9 May 2003 20:55:49 +0200 (CEST)
Newsgroups gmane.comp.java.nanning.devel
Message-ID <[email protected]>
 --- Eric Jain <[email protected]> skrev: > > If
you're used to specing everything upside
> > down for a single class at a time then the
> XML-configs
> > might be easier to use.
> 
> One of the things I like about config files is that
> they are very
> straightforward and simple too understand, even for
> people without any
> knowledge of aspect-oriented programming. Possible
> that they do not work
> well for more complex setups, but at least for our
> purposes they do seem
> pretty well suited.

Ok, I see your point. You don't feel like rewriting
the XML stuff then? I'm not sure I have the time for
it... But maybe some time if I'm bored.

What kind of performance do you need from it? I'm
thinking maybe I'll just rerun the Jelly-script for
each time an object is instantiated. That'll be
easiest and most flexible...

Oh, the new config-system is entirely in Java. So
maybe it's not for you either...

> > You do know that the interceptor can filter out
> > methods by implementing FilterMethodsInterceptor
> > right?
> 
> Been there, done that... However I'd rather maintain
> different config
> files for different sites that different code.

Yeah, see your point.

> Incidently, it seems that Nanning creates one
> interceptor instance per
> object rather than per method for
> MethodInterceptors. There isn't any
> way to change this, is there?

It's more flexible in the new system. Maybe if
somebody rewrites the XML config stuff we could change
that. There was a bunch of stupid optimizations in the
old system that's not really needed.

_____________________________________________________
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