This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
Roo will only ever generate code in the AspectJ ITDs. You can easily move the generated code from an ITD to the .java file, though:
- Just cut and copy the code from the .aj to the .java.
- Or, more preferably, use the Eclipse AJDT "Refactoring > Push In Refactor" feature for the class you want to move the members from the .aj to .java. This will take care of ensuring any translation steps are properly and automatically completed.
You can also write a handle method in the .java controller as you would any other Spring controller. You don't need to firstly create a scaffolded controller. The "controller class" command is possibly useful if you'd prefer to write a controller from scratch (as opposed to use a scaffolded version).