boolean disableMysql = settings.getAsBoolean(ServiceFramwork.mode + ".datasources.mysql.disable", false);
boolean disableMongo = settings.getAsBoolean(ServiceFramwork.mode + ".datasources.mongodb.disable", false);
boolean disableHttp = settings.getAsBoolean("http.disable", false);
boolean disableThrift = settings.getAsBoolean("thrift.disable", true);
Loader loggerLoader = new LoggerLoader();
loggerLoader.load(settings);
if (ServiceFramwork.scanService.getLoader() == null || (ServiceFramwork.scanService.getLoader() == DefaultScanService.class)) {
ServiceFramwork.scanService.setLoader(ServiceFramwork.class);
}
if (!disableMysql) {
JPA.configure(new JPA.CSDNORMConfiguration(ServiceFramwork.mode.name(), tuple.v1(), ServiceFramwork.scanService.getLoader(), ServiceFramwork.classPool));
}
if (!disableMongo) {
MongoMongo.configure(new MongoMongo.CSDNMongoConfiguration(ServiceFramwork.mode.name(), tuple.v1(), ServiceFramwork.scanService.getLoader(), ServiceFramwork.classPool));
}
Loader moduleLoader = new ModuelLoader();
moduleLoader.load(settings);
List<Loader> loaders = new ArrayList<Loader>();
loaders.add(new ServiceLoader());
loaders.add(new UtilLoader());