Announcement Announcement Module
Collapse
No announcement yet.
Modifiy only certain controller methods Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Modifiy only certain controller methods

    HI,

    I would like to modify only one or two methods of my controller, which are currently defined in the roo-generated ITD. I do not want roo to overwrite my changes. Is there a way to do this?

    Can I just move the method I want to change from the ITD to the Controller-Class and do my customizations there?

  • #2
    Yes.

    Short answer: yes.

    Medium answer: Roo will not introduce anything via an ITD if that element already exists in your Java code.

    Longer answer: in some cases (not sure which, but toString() is one of them), you can have both your own method and the generated method (with a different name of course); see the AspectJ section of the manual.

    Comment


    • #3
      Thanks andrews. Works fine :-)

      Comment

      Working...
      X