8. The TOP Mechanism
The TOP mechanism allows you to extend generated code without modifying it.
- Backend (Java): Create a class
Foo extends FooTOPinbackend/src/main/java. The generator will use your class. - Frontend (Java): Create a class
Foo extends FooTOPinfrontend/src/main/java. Add@umlp.jsweet.extension.annotation.Component. - Frontend (Templates): Create
Foo.htmlorFoo.scssinfrontend/src/main/guito completely overwrite the generated files.
< Previous: Backend Customization | Back to Index | Next: Project Setup >