@@ -61,6 +61,7 @@ public class DbServiceManager extends AppServiceBase<DbServiceManager> implement
6161 @ Inject
6262 public DbServiceManager (final App app ) {
6363 super (app );
64+ EntityClassRepository .init (app );
6465 initServices (app .config ());
6566 configureSequenceGenerator (app );
6667 app .eventBus ().bind (AppEventId .SINGLETON_PROVISIONED , new AppEventListenerBase () {
@@ -154,14 +155,14 @@ private void initServices(AppConfig config) {
154155 return ;
155156 }
156157 DbPlugin db = dbManager .theSolePlugin ();
157- Map <String , Object > dbConf = config .subSet ("db." );
158+ Map <String , String > dbConf = config .subSet ("db." );
158159 if (dbConf .isEmpty ()) {
159160 if (null == db ) {
160161 logger .warn ("DB service not intialized: need to specify default db service implementation" );
161162 return ;
162163 } else {
163164 logger .warn ("DB configuration not found. Will try to init default service with the sole db plugin: %s" , db );
164- DbService svc = db .initDbService (DEFAULT , app (), new HashMap <String , Object >());
165+ DbService svc = db .initDbService (DEFAULT , app (), new HashMap <String , String >());
165166 serviceMap .put (DEFAULT , svc );
166167 return ;
167168 }
@@ -196,11 +197,11 @@ private void initServices(AppConfig config) {
196197 logger .warn ("DB service not initialized: need to specify default db service implementation" );
197198 } else {
198199 logger .warn ("DB configuration not found. Will try to init default service with the sole db plugin: %s" , db );
199- Map <String , Object > svcConf = C .newMap ();
200+ Map <String , String > svcConf = C .newMap ();
200201 String prefix = "db." ;
201202 for (String key : dbConf .keySet ()) {
202203 if (key .startsWith (prefix )) {
203- Object o = dbConf .get (key );
204+ String o = dbConf .get (key );
204205 svcConf .put (key .substring (prefix .length ()), o );
205206 }
206207 }
@@ -214,12 +215,12 @@ private void initServices(AppConfig config) {
214215 }
215216 }
216217
217- private void initService (String dbId , Map <String , Object > conf ) {
218- Map <String , Object > svcConf = C .newMap ();
218+ private void initService (String dbId , Map <String , String > conf ) {
219+ Map <String , String > svcConf = C .newMap ();
219220 String prefix = "db." + (S .empty (dbId ) ? "" : dbId + "." );
220221 for (String key : conf .keySet ()) {
221222 if (key .startsWith (prefix )) {
222- Object o = conf .get (key );
223+ String o = conf .get (key );
223224 svcConf .put (key .substring (prefix .length ()), o );
224225 }
225226 }
0 commit comments