You cannot change the configuration of an injector after it has been created. What you can do is create a child injector which inherits all bindings from its parent and can add extra bindings.
But I think the problem should be tackled by your bean container. Which one are you using. Can you influence the order of bean binding. Why are you using a bean container, would pojos be sufficient... Am 7. März 2019 18:58:39 MEZ schrieb jiandai via google-guice <google-guice@googlegroups.com>: >Hi there, > >I have a Guice bean which need to preload some data from Spanner DB >after >it initialized, but the Spanner DB connection may not been established >yet >before that bean's binding. I was wondering if Guice allow to >post-initialization after all the binding finished. (I know Spring >support >it)? > >Many thanks in advance for the nice help. > >Jian > >-- >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 google-guice+unsubscr...@googlegroups.com. >To post to this group, send email to google-guice@googlegroups.com. >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/b019b012-3a35-4b71-8cf9-617d3e3b3cb8%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 google-guice+unsubscr...@googlegroups.com. To post to this group, send email to google-guice@googlegroups.com. 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/C5CC1288-82DB-4D9B-AE49-BF7C8FB8923E%40gmx.ch. For more options, visit https://groups.google.com/d/optout.