From: renaud <re...@ao...> - 2003-11-26 14:49:56
|
> >What do you think about the possibility of defining=20 > metadatas on method > parameters, and how should it be done? >=20 > I haven't really thought about it. To be honest I hadn't=20 > noticed that JSR-175 allowed it before, and I'm not sure I=20 > can think of a use case where I'd need it. Commons Attributes allows that is I am not mistaken. I think it could be useful for the long term. For instance, you may want to configure a distribution layer to enable a method argument to be passed by value or = by reference. A generic client may use the metadata on the parameters of = the business fa=E7ade/delegate beans to fill up the GUI with parameters = names (for example for i18n). Anyway, it can be handled by having more complex attribute definitions = on the methods, but it could be not very practical for aspects that heavily rely on this configuration granularity level. /Renaud >=20 > Regards, > Rod >=20 > --- > Renaud Pawlak > Software Engineering Department > Rensselaer at Hartford > 275 Windsor St, Hartford, CT 06120-2991 > Work: 860-548-5358 Mobile: 860-748-5527 > Emails: pa...@rh..., re...@ao... > WWW: http://www.lifl.fr/~pawlak >=20 >=20 > > -----Original Message----- > > From: aop...@li... > > [mailto:aop...@li...] On=20 > Behalf Of=20 > > Jonas Bonir > > Sent: Wednesday, November 26, 2003 8:55 AM > > To: aop...@li... > > Subject: Re: [aopalliance-discuss] Configurations of aspects. > > > > > > This interface is close to the one we are using in AW, though a bit=20 > > more generic through the use of filters. I like it. Don't know how=20 > > well it works with JSR-175 though. (Reading the spec. is on my todo=20 > > list :-) > > > > /Jonas > > > > --- Rod Johnson <rod...@in...> wrote: > > > Renaud, > > > > > > Attributes are not included in the latest Spring 1.0 M3 > > distribution > > > and not in the main CVS tree, so I'm attaching the interface.=20 > > > AttributeException is unchecked. > > > > > > This interface originated out of Mark Pollack's Attrib4j project.=20 > > > Mark's now moving his attribute work (a re-implementation) into=20 > > > Spring. > > > > > > Regards, > > > Rod > > > > > > ----- Original Message ----- > > > From: "renaud" <re...@ao...> > > > To: <aop...@li...> > > > Sent: Wednesday, November 26, 2003 1:34 PM > > > Subject: RE: [aopalliance-discuss] Configurations of aspects. > > > > > > > > > > > > > > > > > > But I do believe that a solution similar to what Rod is > > > > suggesting is > > > > needed. > > > > > > I also think that an attribute fa=E7ade is a very tempting > > solution. At > > > least from the framework developer perspective and maybe=20 > the aspect=20 > > > developper perspective. > > > > > > From the final developper perspective (the one who configures the=20 > > > aspects), I am not sure that having the possibility to=20 > use several=20 > > > attribute definition techniques is very pratical, but at > > least it is > > > flexible and opened. This would certainly be the best thing > > to do in > > > the middle term. > > > > > > > Is anyone interested in collaborating on such an > > approach? Basically > > > > I think it would need to be just an interface and > > possibly a lookup > > > > approach (although I hate singletons and wouldn't want=20 > the API to=20 > > > > force use of one). An interface would be a great start. > > The actual > > > > chaining of providers etc could be handled within each > > framework as > > > > the developers preferred. A standard provider would need to be=20 > > > > supplied for JSR-175 when it's available. > > > > > > I am definitly interested in working on this, despite my > > limited time > > > and my other concerns. As many of you know, I am currently=20 > > > investigating the funding of the AOP Alliance, and the > > possibility to > > > form or join a consortium in order to have a core > > workforce. This is > > > my priority for the moment. So if anybody wants to help on > > this (the > > > attributes or/and the consortium thing), he is more than welcome. > > > > > > > > > > > I can provide an attributes interface to start discussion, and=20 > > > > there's also Commons Attributes, Codehaus Attributes (I > > > > think) etc. > > > > > > As I said I'll take a look at the available Spring repository. If=20 > > > possible, I can then propose a first draft from it to start the=20 > > > discussion. > > > > > > /Renaud > > > > > > > > > > > Regards, > > > > Rod > > > > > > > > ----- Original Message ----- > > > > From: "Jonas Bon=E9r" <jon...@ya...> > > > > To: <aop...@li...> > > > > Sent: Wednesday, November 26, 2003 12:15 PM > > > > Subject: Re: [aopalliance-discuss] Configurations of aspects. > > > > > > > > > > > > > To support different deployment scenarios using > > attributes only I > > > > > would > > > > currently use abstraction, > > > > > but I have to agree on that it is not an optimal approach, > > > > although it > > > > removes a lot of the > > > > > problems with deployment descriptors. > > > > > > > > > > The other approach is to use a combination of XML and > > attributes > > > > > in which > > > > you put the generic > > > > > meta-data in the attributes but you arew still allowed to > > > > parameterize > > > > > the > > > > advices using the > > > > > deployment descriptor. We do that as well. > > > > > > > > > > But I do believe that a solution similar to what Rod is > > > > suggesting is > > > > needed. > > > > > > > > > > Thanks for the feedback. > > > > > > > > > > /Jonas > > > > > > > > > > > > > > > --- Rickard_=D6berg <ri...@dr...> wrote: > > > > > > Jonas Bon=E9r wrote: > > > > > > > In AspectWerkz we are solving this by adding the > > metadata as > > > > > > > javadoc > > > > tags which are parsed and > > > > > > > then compiled in into the bytecode of the class.=20 > Making it=20 > > > > > > > completely > > > > self-contained. This > > > > > > > approach has many advantages, among others: refactoring=20 > > > > > > > support, > > > > higher reusability and > > > > > > > manageability. The additional compilation and=20 > parsing phase=20 > > > > > > > will > > > > become not be needed when > > > > > > Java > > > > > > > 1.5 and JSR-175 > > > > > > > is released. > > > > > > > > > > > > How do you deal with the problem of multiple deployment > > > > scenarios? > > > > > > I.e. sometimes you want advice to apply one way, and > > sometimes > > > > > > another. The above sounds like a static, one-way-only, > > > > binding. Am I > > > > > > missing > > > > something? > > > > > > > > > > > > For a typical example of when this is useful, we use two > > > > different > > > > > > configurations, one for the server and one for the > > > > client. The idea > > > > > > becomes similar to how deployment descriptors work. > > > > > > > > > > > > /Rickard > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.net email is sponsored by: SF.net Giveback > > Program. Does > > > > > > SourceForge.net help you be more productive? Does it > > help you > > > > > > create better code? SHARE THE LOVE, and help us help YOU!=20 > > > > > > Click > > > > > > Here: http://sourceforge.net/donate/=20 > > > > > > _______________________________________________ > > > > > > aopalliance-discuss mailing list=20 > > > > > > aop...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/aopalliance-discuss > > > > > > > > > > > > > > > =3D=3D=3D=3D=3D > > > > > -- > > > > > Jonas > > > > > http://blogs.codehaus.org/people/jboner/ > > > > > > > > > > __________________________________ > > > > > Do you Yahoo!? > > > > > Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.net email is sponsored by: SF.net Giveback=20 > Program. Does=20 > > > > > SourceForge.net help you be more productive? Does it help > > > > you create > > > > > better code? SHARE THE LOVE, and help us help YOU! =20 > Click Here:=20 > > > > > http://sourceforge.net/donate/=20 > > > > > _______________________________________________ > > > > > aopalliance-discuss mailing list=20 > > > > > aop...@li... > > > > >=20 > https://lists.sourceforge.net/lists/listinfo/aopalliance-discuss > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: SF.net Giveback=20 > Program. Does=20 > > > > SourceForge.net help you be more productive? Does it help you=20 > > > > create better code? SHARE THE LOVE, and help us help=20 > YOU! Click=20 > > > > Here: http://sourceforge.net/donate/=20 > > > > _______________________________________________ > > > > aopalliance-discuss mailing list=20 > > > > aop...@li... > > > > https://lists.sourceforge.net/lists/listinfo/aopalliance-discuss > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: SF.net Giveback Program. Does=20 > > > SourceForge.net help you be more productive? Does it help you=20 > > > create better code? SHARE THE LOVE, and help us help YOU! Click=20 > > > Here: http://sourceforge.net/donate/=20 > > > _______________________________________________ > > > aopalliance-discuss mailing list=20 > > > aop...@li... > > > https://lists.sourceforge.net/lists/listinfo/aopalliance-discuss > > > > > > > > ATTACHMENT part 2 application/octet-stream name=3DAttributes.java > > > > > > > > =3D=3D=3D=3D=3D > > -- > > Jonas > > http://blogs.codehaus.org/people/jboner/ > > > > __________________________________ > > Do you Yahoo!? > > Free Pop-Up Blocker - Get it now > > http://companion.yahoo.com/ > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback Program. Does=20 > > SourceForge.net help you be more productive? Does it help=20 > you create=20 > > better code? SHARE THE LOVE, and help us help YOU! Click Here:=20 > > http://sourceforge.net/donate/=20 > > _______________________________________________ > > aopalliance-discuss mailing list=20 > > aop...@li... > > https://lists.sourceforge.net/lists/listinfo/aopalliance-discuss > > >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program.=20 > Does SourceForge.net help you be more productive? Does it=20 > help you create better code? SHARE THE LOVE, and help us=20 > help YOU! Click Here: http://sourceforge.net/donate/=20 > _______________________________________________ > aopalliance-discuss mailing list=20 > aop...@li... > https://lists.sourceforge.net/lists/listinfo/aopalliance-discuss >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program.=20 > Does SourceForge.net help you be more productive? Does it=20 > help you create better code? SHARE THE LOVE, and help us=20 > help YOU! Click Here: http://sourceforge.net/donate/=20 > _______________________________________________ > aopalliance-discuss mailing list=20 > aop...@li... > https://lists.sourceforge.net/lists/listinfo/aopalliance-discuss >=20 |