@PostConstruct
void init() {
TaackAppRegisterService.register TaackApp( (1)
CrewController.&index as MC, (2)
new String(
this.class
.getResourceAsStream("/crew/crew.svg") (3)
.readAllBytes())
)
}
Table of Contents
Register an app
An app registers only its entry points (i.e., actions executed when accessing app) and corresponding svg icons. Controller entry point names are used in localized labeling and description in i18n
property files.
Crew app registration
1 | Call static method TaackAppRegisterService.register |
2 | Define entry point |
3 | Svg icon |
I18n
In i18n
properties, add
crew.app=Crew
crew.desc=User Management Application
attachment.app=Attachment
attachment.desc=Global File Manager
Default Application Mosaic
By default, the RootController
in server holds the entry point. It can easily be changed.
Figure 1. Default Apps Mosaic