When to use Guice's Just-in-time Bindings?
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
add a comment |
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
add a comment |
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
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
java guice
edited Nov 22 '18 at 15:51
Вячеслав Пегаскин
asked Nov 22 '18 at 2:06
Вячеслав ПегаскинВячеслав Пегаскин
64
64
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
- You don’t have to write a lot of trivial bindings.
- You can use Guice without writing modules.
- You might need Guice to instantiate something from a library that was not built with Guice bindings or annotations.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
- You don’t have to write a lot of trivial bindings.
- You can use Guice without writing modules.
- You might need Guice to instantiate something from a library that was not built with Guice bindings or annotations.
add a comment |
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
- You don’t have to write a lot of trivial bindings.
- You can use Guice without writing modules.
- You might need Guice to instantiate something from a library that was not built with Guice bindings or annotations.
add a comment |
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
- You don’t have to write a lot of trivial bindings.
- You can use Guice without writing modules.
- You might need Guice to instantiate something from a library that was not built with Guice bindings or annotations.
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
- You don’t have to write a lot of trivial bindings.
- You can use Guice without writing modules.
- You might need Guice to instantiate something from a library that was not built with Guice bindings or annotations.
answered Nov 22 '18 at 6:57
Matthew PopeMatthew Pope
2,1371815
2,1371815
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
