Config - neowu/core-ng-project GitHub Wiki

Demo project

please check demo project as full example

Module

As IOC/DI principle, it separates construction logic from business logic, and core-ng provide construction API via Module.

In Module, it can bind object and inject into other bean via @Inject. and it also provides shortcut to config our supported external dependencies such as db/mongo/redis/etc

App class is also Module, you can organize business logic in your own way, but it recommends to organize in vertical way, e.g. each module contains full stack of one function, e.g. customerModule/productModule, and one module may depends on other. the reason is in SOA/Microservice env, you can easily move one module out as separated service when you scale out.

Object Lifecycle management

to be finished