use of core.framework.impl.inject.BeanFactory in project core-ng-project by neowu.
the class RouteConfigTest method createRouteConfig.
@BeforeEach
void createRouteConfig() {
ModuleContext context = new ModuleContext(new BeanFactory(), new TestMockFactory());
config = new RouteConfig(context);
}
use of core.framework.impl.inject.BeanFactory in project core-ng-project by neowu.
the class SystemModuleTest method createSystemModule.
@BeforeEach
void createSystemModule() {
systemModule = new SystemModule(null);
systemModule.context = new ModuleContext(new BeanFactory(), new TestMockFactory());
System.clearProperty("sys.http.port");
}
use of core.framework.impl.inject.BeanFactory in project core-ng-project by neowu.
the class App method configure.
public final void configure() {
logger.info("initialize framework");
logger.info("availableProcessors={}, maxMemory={}", Threads.availableProcessors(), Runtime.getRuntime().maxMemory());
context = new ModuleContext(new BeanFactory(), null);
logger.info("initialize application");
initialize();
context.config.validate();
}
Aggregations