custom Guice binding annotations with parameters

前端 未结 4 527
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 03:41

I have successfully created a Guice binding annotation to inject single threaded java.util.concurrent.ExecutorService instances into a constructor.

here is an exampl

4条回答
  •  猫巷女王i
    2020-12-11 04:24

    Yes, you can. without iterator all situations.

    Actually, I have the almost the same problem like your's. Here is my answer and question, with all my code. I only know how to do with field not parameter, but I think this is not a big problem, right ?

    Follow CustomInjections in wiki you will know how.

提交回复
热议问题