Add JEE (jakarta.inject) support to Guice by hgschmie · Pull Request #1630 · google/guice (original) (raw)
added 2 commits
Support for
- jakarta.inject.Inject
- jakarta.inject.Named
- jakarta.inject.Qualifier
- jakarta.inject.Scope
- jakarta.inject.Singleton
These injections are functional equivalent to the javax.inject counterparts.
Adds support for jakarta providers. These can be used interchangeably with their native and javax.inject counterparts.
This is a straight port from the guice-servlet code to support the new jakarta servlet API classes (jakarta.*).
hgschmie marked this pull request as ready for review
sameb mentioned this pull request
copybara-service Bot pushed a commit that referenced this pull request
…rt for toProvider(...) to instances of jakarta.inject.Provider or classes/keys/typeLiterals of type jakarta.inject.Provider. See #1383 (comment) for details of the plans. The Guice 6.0 release will support javax.inject and jakarta.inject (excluding toProvider() support for jakarta.inject), and the Guice 7.0+ release will remove the javax.inject references.
Further background on these issues:
PiperOrigin-RevId: 526763665
copybara-service Bot pushed a commit that referenced this pull request
This does not add support for toProvider(...) to instances of jakarta.inject.Provider or classes/keys/typeLiterals of type jakarta.inject.Provider. See #1383 (comment) for details of the plans. The Guice 6.0 release will support javax.inject and jakarta.inject (excluding toProvider() support for jakarta.inject), and the Guice 7.0+ release will remove the javax.inject references.
Further background on these issues:
PiperOrigin-RevId: 526763665
copybara-service Bot pushed a commit that referenced this pull request
This does not add support for toProvider(...) to instances of jakarta.inject.Provider or classes/keys/typeLiterals of type jakarta.inject.Provider. See #1383 (comment) for details of the plans. The Guice 6.0 release will support javax.inject and jakarta.inject (excluding toProvider() support for jakarta.inject), and the Guice 7.0+ release will remove the javax.inject references.
Further background on these issues:
PiperOrigin-RevId: 526763665
copybara-service Bot pushed a commit that referenced this pull request
This does not add support for toProvider(...) to instances of jakarta.inject.Provider or classes/keys/typeLiterals of type jakarta.inject.Provider. See #1383 (comment) for details of the plans. The Guice 6.0 release will support javax.inject and jakarta.inject (excluding toProvider() support for jakarta.inject), and the Guice 7.0+ release will remove the javax.inject references.
Further background on these issues:
PiperOrigin-RevId: 526763665
copybara-service Bot pushed a commit that referenced this pull request
This does not add support for toProvider(...) to instances of jakarta.inject.Provider or classes/keys/typeLiterals of type jakarta.inject.Provider. See #1383 (comment) for details of the plans. The Guice 6.0 release will support javax.inject and jakarta.inject (excluding toProvider() support for jakarta.inject), and the Guice 7.0+ release will remove the javax.inject references.
Further background on these issues:
PiperOrigin-RevId: 526763665
copybara-service Bot pushed a commit that referenced this pull request
This does not add support for toProvider(...) to instances of jakarta.inject.Provider or classes/keys/typeLiterals of type jakarta.inject.Provider. See #1383 (comment) for details of the plans. The Guice 6.0 release will support javax.inject and jakarta.inject (excluding toProvider() support for jakarta.inject), and the Guice 7.0+ release will remove the javax.inject references.
Further background on these issues:
PiperOrigin-RevId: 527349023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})