Developing an advanced add-on
If you want to generate Java code (classes and interfaces) and AspectJ ITDs in response to the execution of one or more Roo commands, then you should create an advanced Roo add-on.
Spring Roo treats both simple and advanced add-ons the same way. The distinction between simple and advanced add-ons exists so that you can choose an appropriate add-on template based on your custom add-on requirement. The add-on template created by the addon
create
simple
command is useful if you want to create a custom add-on meant for adding project dependencies to the pom.xml
file and for adding configuration artifacts to the project. In this recipe we'll look at the addon
create
advanced
command, which is useful if you want to create a custom add-on to generate Java code and AspectJ ITD.
Getting ready
Create a new directory C:\roo-cookbook\ch07-advanced-add-on
in your system and start the Roo shell from the ch07-advanced-add-on
directory.
How to do it...
The following steps will demonstrate...