Results 1 to 3 of 3

Thread: Modifiy only certain controller methods

Hybrid View

  1. #1

    Default 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. #2
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    667

    Thumbs up 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.
    Andrew Swan
    "Now is the EJB of our discontent made glorious Spring"

  3. #3

    Default

    Thanks andrews. Works fine :-)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •