title: Generate aspect from a Java class
body: <p>i'm looking for a way to generate an aspectJ aspect out of a Java class during my build process.
  The goal ist to generate an inter-type declaration aspect that contains a String constant for each attribute of the java class.</p>
  
  <p><strong>Java class:</strong></p>
  
  <pre><code>public class CarDTO {
  
      private String vendor;
      private String name;
  
  
      public String getVendor() {}
      public String getName() {}
      [..]    
  }
  </code></pre>
  
  <p><strong>This is the aspect which should be generated:</strong></p>
  
  <pre><code>aspect CarAspect 
  {
       public static final String CarDTO.VENDOR = "vendor";
       public static final String CarDTO.NAME = "name";
  }
  </code></pre>
  
  <p>Does any obne know a tool or a plugin for maven etc with which i can achieve this behaviour?</p>
  
  <p>Thanks</p>
  
  <p>martin</p>