Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1390

Increase the management of ItdSourceFileComposer management and DefaultItdTypeDetailsBuilder

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 1.1.0.RELEASE
    • Component/s: @ CORE
    • Labels:
      None
    • Environment:
      SUN JDK 1.5.0_07
      Ubuntu 10.04
      Eclipse 3.5.1

      Description

      Hi!

      I want to generate a Metadata (AspectJ) with a rule in wich all methods that aren't annotated with defined annotation (@AnnotatedMethod) in a class (TestRequirements) asign an especific annotation (@NewAnnotatedMethod(new = true)). This is the AspectJ declaration:

      declare @method: [email protected] * TestRequirements.*(..) : @NewAnnotatedMethod(new = true);
      

      The DefaultItdTypeDetailsBuilder class provides some methods to update a method, method annotations, types annotation, etc... to generate AspectJ but there is no method defined to create a custom rule like this in ROO. Then ItdSourceFileComposermanagement generates the AspectJ file with this information.
      This could improve the management of AspectJ generated files by an Addon an make more use of its capabilities.

      These are two posts in AspectJ bugzilla that we post related to this topic which can be useful to implement a solution to manage with ROO that will be released in 1.6.10 version:

      Declare annotation to a method param:

      Declare annotation - augmentation/overriding and precedence:

      I think this could be useful to Addon development.
      Thank you!

        Attachments

          Activity

            People

            • Assignee:
              balex Ben Alex
              Reporter:
              ricardogarfe Ricardo García
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: