Have a look at child injectors. https://google.github.io/guice/api-docs/latest/javadoc/index.html?com/google/inject/Injector.html
Am 11. Februar 2016 02:34:29 MEZ, schrieb Yeah Yeah <[email protected]>: >Hi, > > >Been scratching my head about this, i am building a REST API using >Jetty, >Jersey and Guice. >I currently have a guice injector which has two modules, one for >resources(RestModule) and the other a bunch of binders(ClientModule). >I have a resource called application service which has a list of >running >java applications(connecting via port and server). >In the application service i keep a map of running application in which >i >created an injector for each. >Allowing it to pass its own ClientModule however use the same >RestModule. > >How would i go about architecuring this sort of system, were you have >an >injector for each instance of a java application using the same rest >resources. > >Application - java1 >api/java1/user/all >Application - java2 >api/java2/user/all > >-- >You received this message because you are subscribed to the Google >Groups "google-guice" group. >To unsubscribe from this group and stop receiving emails from it, send >an email to [email protected]. >To post to this group, send email to [email protected]. >Visit this group at https://groups.google.com/group/google-guice. >To view this discussion on the web visit >https://groups.google.com/d/msgid/google-guice/3bcd7a7b-bb23-4980-84fe-fef2d2fb1e67%40googlegroups.com. >For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-guice. To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CBE394E6-03FD-49B7-8626-E90E2E5D5D8F%40gmx.ch. For more options, visit https://groups.google.com/d/optout.
