Announcement Announcement Module
Collapse
No announcement yet.
Compiling order between two AspectJ files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Compiling order between two AspectJ files

    Hi everybody!

    I have one question related to compiling order for AspectJ files.

    It's possible to set a compiling order to various aj files ? I need this because one file depends of the definitions that are setted in another to java class.

    For example.

    Java Class:
    Code:
    Car class {
        private Srting name;
    }
    AspectjFile:
    Code:
    privileged aspect Car_Roo_Entity {
    ...
        public static String Car.getName() {
            return "name";
        }
    ...
    }
    AspectJFile to add annotations to defined method:
    Code:
    public aspect Car_GvNix_Service_Entity {
        // findAllCars method.
        declare @method: * Car.getName() : @WebMethod(operationName = "getName", action = "", exclude = false);
        declare @method: * Car.getName() : @ResponseWrapper(localName = "getNameResponse", targetNamespace = "http://services.web.project.test.org/domain", className = "org.test.project.web.services.Name");
        declare @method: * Car.getName() : @WebResult(name = "cars", targetNamespace = "http://services.web.project.test.gvnix.org/domain", header = false, partName = "parameters");
    }
    It's possible to declare a compiling order ? because every time I generate the wsdl file it changes and it's not well formed.

    I've proof with 'declare pecedence' statement but I didn't had any good result.

    Thank you so much!

    Cheers.
Working...
X