Modules provide a way to extend parts of your applications without the need of adding these one by one.
A module just needs to implement the Module interface, like in the following example:
public class ExampleModule implements Module {
// overwrite methods of the interface
}public class ExampleApp extends WebApplication {
protected void setupModules() {
addModule(new ExampleModule());
}
}