Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate fig bindings throws exception #4

Open
michaelarusso opened this issue Sep 6, 2016 · 0 comments
Open

Duplicate fig bindings throws exception #4

michaelarusso opened this issue Sep 6, 2016 · 0 comments

Comments

@michaelarusso
Copy link

michaelarusso commented Sep 6, 2016

1) A binding to org.apache.usergrid.persistence.index.IndexFig was already configured at io.subutai.guicyfig.GuicyFigModule.configure(GuicyFigModule.java:88) (via modules: org.apache.usergrid.corepersistence.CoreModule -> io.subutai.guicyfig.GuicyFigModule).
  at io.subutai.guicyfig.GuicyFigModule.configure(GuicyFigModule.java:88) (via modules: org.apache.usergrid.corepersistence.CoreModule -> org.apache.usergrid.corepersistence.CoreModule$3 -> io.subutai.guicyfig.GuicyFigModule)

2) A binding to org.apache.usergrid.persistence.queue.QueueFig was already configured at io.subutai.guicyfig.GuicyFigModule.configure(GuicyFigModule.java:88) (via modules: org.apache.usergrid.corepersistence.CoreModule -> org.apache.usergrid.persistence.queue.guice.QueueModule -> io.subutai.guicyfig.GuicyFigModule).
  at io.subutai.guicyfig.GuicyFigModule.configure(GuicyFigModule.java:88) (via modules: org.apache.usergrid.corepersistence.CoreModule -> org.apache.usergrid.corepersistence.CoreModule$3 -> org.apache.usergrid.persistence.queue.guice.QueueModule -> io.subutai.guicyfig.GuicyFigModule)

Is there any way to properly handle the de-duplication? In Usergrid we're needing to have multiple independent maven modules install the same Guice module which binds the same GuicyFig ( I know the whole DI needs cleaned up a bit but don't have time at the moment). I know Guice itself handles this I think, but we're getting problems with the GuicyFig Modules. I thought Guice 4.0 helps but it doesnt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant