Hi Ricardo, Unfortunately, you cannot do that at the moment. But I can see it is a reasonable thing to do - please raise an enhancement request against AspectJ to support it: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
Technically it isn't hard to do but we'd need to be careful about the syntax. Do you have a proposed syntax? cheers Andy On 3 August 2010 00:09, ricardo garcia fernandez <[email protected]> wrote: > Hi! > I've created a Service class and I want to convert with AspectJ to a > WebService Annotated using Jax-WS. > > I have a service method and declare all the annotations I need in th AspectJ > file (class, method, field) but how I could declare a method parameter > annotation ? Is this possible ? I was searching for an answer and I didn't > found anything. > > I.E.: I want to declare an annotation to a method param, like I do to > declare an annotation to a method to assign the @WebParam annotation to > selected parameter. > Is there any workaround ? > > AspectJ file: > > declare @method: * > org.test.project.web.services.CarService.returnString() : > @WebMethod(operationName = "returnString", action = "", exclude = false); > > Java file: > > public class CarService { > > final static String STRING_MESSAGE = "Respuesta de la operación del > servicio."; > > public String returnString(Car car) { > return STRING_MESSAGE; > } > } > > How can I assign '@WebParam(name = "coche", partName = "parameters", > targetNamespace = "http://services.web.project.test.org/types", mode = > Mode.IN, header = false)' to 'Car car' method parameter ? > > > Thank you so much! > best regards! > > > -- > --- > Ricardo García Fernández > > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
