When to use Guice's Just-in-time Bindings?












0















I read Guice's documentation on its Just-in-time Bindings and it says nothing about when to use it. Also on on their main GitHub page they say:




Guice is not a kitchen sink. We justify each feature with at least three use cases.




I can't find a section where they would show me such use cases for their Just-in-time bindings.



Thank you.



P.S. I am sorry if I have made any mistakes.










share|improve this question





























    0















    I read Guice's documentation on its Just-in-time Bindings and it says nothing about when to use it. Also on on their main GitHub page they say:




    Guice is not a kitchen sink. We justify each feature with at least three use cases.




    I can't find a section where they would show me such use cases for their Just-in-time bindings.



    Thank you.



    P.S. I am sorry if I have made any mistakes.










    share|improve this question



























      0












      0








      0








      I read Guice's documentation on its Just-in-time Bindings and it says nothing about when to use it. Also on on their main GitHub page they say:




      Guice is not a kitchen sink. We justify each feature with at least three use cases.




      I can't find a section where they would show me such use cases for their Just-in-time bindings.



      Thank you.



      P.S. I am sorry if I have made any mistakes.










      share|improve this question
















      I read Guice's documentation on its Just-in-time Bindings and it says nothing about when to use it. Also on on their main GitHub page they say:




      Guice is not a kitchen sink. We justify each feature with at least three use cases.




      I can't find a section where they would show me such use cases for their Just-in-time bindings.



      Thank you.



      P.S. I am sorry if I have made any mistakes.







      java guice






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 '18 at 15:51







      Вячеслав Пегаскин

















      asked Nov 22 '18 at 2:06









      Вячеслав ПегаскинВячеслав Пегаскин

      64




      64
























          1 Answer
          1






          active

          oldest

          votes


















          1














          Maybe Google Guice didn’t provide use cases because this is the core feature of Guice. It seems to me that everything else is a feature on top of JIT bindings or a feature that fills a gap where you can’t use JIT bindings. That being said, I’m not on the Guice team, so I can’t really do anything more than speculate about what they were thinking.



          Anyway, here are some use cases I came up with




          1. You don’t have to write a lot of trivial bindings.

          2. You can use Guice without writing modules.

          3. You might need Guice to instantiate something from a library that was not built with Guice bindings or annotations.






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422923%2fwhen-to-use-guices-just-in-time-bindings%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Maybe Google Guice didn’t provide use cases because this is the core feature of Guice. It seems to me that everything else is a feature on top of JIT bindings or a feature that fills a gap where you can’t use JIT bindings. That being said, I’m not on the Guice team, so I can’t really do anything more than speculate about what they were thinking.



            Anyway, here are some use cases I came up with




            1. You don’t have to write a lot of trivial bindings.

            2. You can use Guice without writing modules.

            3. You might need Guice to instantiate something from a library that was not built with Guice bindings or annotations.






            share|improve this answer




























              1














              Maybe Google Guice didn’t provide use cases because this is the core feature of Guice. It seems to me that everything else is a feature on top of JIT bindings or a feature that fills a gap where you can’t use JIT bindings. That being said, I’m not on the Guice team, so I can’t really do anything more than speculate about what they were thinking.



              Anyway, here are some use cases I came up with




              1. You don’t have to write a lot of trivial bindings.

              2. You can use Guice without writing modules.

              3. You might need Guice to instantiate something from a library that was not built with Guice bindings or annotations.






              share|improve this answer


























                1












                1








                1







                Maybe Google Guice didn’t provide use cases because this is the core feature of Guice. It seems to me that everything else is a feature on top of JIT bindings or a feature that fills a gap where you can’t use JIT bindings. That being said, I’m not on the Guice team, so I can’t really do anything more than speculate about what they were thinking.



                Anyway, here are some use cases I came up with




                1. You don’t have to write a lot of trivial bindings.

                2. You can use Guice without writing modules.

                3. You might need Guice to instantiate something from a library that was not built with Guice bindings or annotations.






                share|improve this answer













                Maybe Google Guice didn’t provide use cases because this is the core feature of Guice. It seems to me that everything else is a feature on top of JIT bindings or a feature that fills a gap where you can’t use JIT bindings. That being said, I’m not on the Guice team, so I can’t really do anything more than speculate about what they were thinking.



                Anyway, here are some use cases I came up with




                1. You don’t have to write a lot of trivial bindings.

                2. You can use Guice without writing modules.

                3. You might need Guice to instantiate something from a library that was not built with Guice bindings or annotations.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 22 '18 at 6:57









                Matthew PopeMatthew Pope

                2,1371815




                2,1371815
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422923%2fwhen-to-use-guices-just-in-time-bindings%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to send String Array data to Server using php in android

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Is anime1.com a legal site for watching anime?