RE: [aspectwerkz-user] [Feature request] Remove need for aspectwerkz.xml...

Jonas "Bon?r" <jonas_boner-/[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
Hi Vincent.

Redirecting to dev ML.

> > For offline it would be possible to have an option that says: generate
> an
> > XML descriptor skeleton
> > for my aspects. If this is important then I could put that on my todo
> > list. It will be easy to
> > fix.
> 
> It's not yet very important but it'll become important in the future
> (once we get past the prototype phase of Cactus2 and enter into the
> usability phase). It could be provided by Cactus itself or by AW. I'd
> prefer that this feature be provided by AW though... ;-)

I'll put this in JIRA.

> 
> I think the scanning at startup could be an option (off by default
> maybe). Or it be triggered if the user did not provide an
> aspectwerkz.xml file. An optimization could also be provided later where
> an aspectwerkz.xml file would be generated the first time and used in
> subsequent application launches?

There are some problems with this approach:

We will work on trying to remove the need for the aspect to extend the Aspect base class. That
leave us with the only possibility of inspecting the class attribute to see if we have an aspect.
But this might not be sufficient since the @Aspect attribute is not mandatory, this means that we
have to parse all classes on the whole classpath, jars, dirs etc. and  inspect their fields or
method attributes in the search for an advice or pointcut attribute. This is doable but will be
very slow, but if this is important it is perhaps the only option. I agree on that it would be
very neat to have.

/Jonas

> 
> Thanks!
> -Vincent
> 
> > 
> > Thanks for the comments.
> > /Jonas
> > 
> > --- Vincent Massol <[email protected]> wrote:
> > > Hi,
> > >
> > > Following my quest to simplify using AW for Cactus2 users, there's
> one
> > > thing that would help a lot: remove the need for writing an
> > > aspectwerkz.xml file listing all aspects. Not sure if it's easy in
> > > online mode but at least for offline mode it should be quite easy to
> > > scan all sources, looking for classes that extend Aspect (this is
> what
> > > is currently being done by AspectC I guess). There could be a system
> > > property to exclude specific aspects if need be.
> > >
> > > What do you think?
> > >
> > > Thanks
> > > -Vincent
> > >
> > > _______________________________________________
> > > aspectwerkz-user mailing list
> > > aspectwerkz-user-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org
> > > http://lists.codehaus.org/mailman/listinfo/aspectwerkz-user
> > 
> > 
> > =====
> > Jonas
> > http://blogs.codehaus.org/people/jboner/
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Finance: Get your refund fast by filing online.
> > http://taxes.yahoo.com/filing.html
> 


=====
Jonas 
http://blogs.codehaus.org/people/jboner/

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.