Package de.spraener.nxtgen
Interface Cartridge
- All Known Implementing Classes:
AnnotatedCartridgeImpl
public interface Cartridge
A Cartridge is a set of Generators on a Model that is responsible for generating
a certain set of classes. This set typically implements a abstract functionality.
For example a Cartridge can implement the generation of Entity-Classes along with
it's DDL.
Another Cartridge can implement a REST-Controller for some of these Entities.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetName()The nane of the cartridge.Returns a list of Transformations to be executed before the generators are mapped.Do a Mapping of ModelElements inside the Model to CodeGeneratos.
-
Method Details
-
getName
String getName()The nane of the cartridge. For logging purpose.- Returns:
- The name of this cartridge
-
getTransformations
List<Transformation> getTransformations()Returns a list of Transformations to be executed before the generators are mapped. NextGen will execute all Transformations of this cartridge on the same instance of a model. But each cartridge will start with a brand new model instance.
The Transformations are executed in exact the order they are listed here.
- Returns:
- a (maybe empty) list of Transformations to be executed.
- See Also:
-
mapGenerators
Do a Mapping of ModelElements inside the Model to CodeGeneratos. This method is called after all transformations have been executed.- Parameters:
m-- Returns:
-