Fix 'Constructor not ready' exception when injecting DashboardsCollection
Trying to inject DashboardsCollection into GetDashboard fails with an IllegalStateException saying 'Constructor not ready'. [1] gives some background about this error. Not sure I fully understand this problem, but changing the order of the bindings in the module fixes the issue. [1] https://groups.google.com/d/topic/google-guice/b_PoWCKtTcM/discussion Change-Id: Ib06bfa0b2a612b561eb49504bf53a4f501490199 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -34,9 +34,9 @@ public class Module extends RestApiModule {
|
||||
get(PROJECT_KIND, "parent").to(GetParent.class);
|
||||
put(PROJECT_KIND, "parent").to(SetParent.class);
|
||||
|
||||
child(PROJECT_KIND, "dashboards").to(DashboardsCollection.class);
|
||||
get(DASHBOARD_KIND).to(GetDashboard.class);
|
||||
put(DASHBOARD_KIND).to(SetDashboard.class);
|
||||
delete(DASHBOARD_KIND).to(DeleteDashboard.class);
|
||||
child(PROJECT_KIND, "dashboards").to(DashboardsCollection.class);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user