Skip to content

Commit d18f7fc

Browse files
committed
Replace javax.inject -> jakarta.inject
1 parent 3029e45 commit d18f7fc

File tree

56 files changed

+71
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+71
-71
lines changed

docs/asciidoc/di-dagger.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fun main(args: Array<String>) {
134134
<2> Register MVC route provided by Dagger
135135

136136
Due the static nature of Dagger mvc integration identical to normal usage. For custom scopes/lifecycles
137-
Dagger generate a `javax.inject.Provider` on such use cases you need to switch and use the provider
137+
Dagger generate a `jakarta.inject.Provider` on such use cases you need to switch and use the provider
138138
version of the `mvc` method:
139139

140140
.MVC and Dagger provider

docs/asciidoc/modules/guice.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ fun main(args: Array<String>) {
132132
The lifecycle of `MyController` is now managed by Guice. Also:
133133

134134
- In Guice, the default scope is `prototype` (creates a new instance per request)
135-
- If you prefer a single instance add the `javax.inject.Singleton` annotation
135+
- If you prefer a single instance add the `jakarta.inject.Singleton` annotation

docs/asciidoc/modules/quartz.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ This other example uses Guice as dependency provider:
186186
.Guice provisioning
187187
[source,java]
188188
----
189-
import javax.inject.Inject;
189+
import jakarta.inject.Inject;
190190
191191
{
192192
install(new GuiceModule());

docs/asciidoc/modules/spring.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class BillingService {
9292
.Kotlin
9393
[source,kotlin,role="secondary"]
9494
----
95-
import javax.inject.Inject
95+
import jakarta.inject.Inject
9696
import org.springframework.beans.factory.annotation.Value
9797
9898
class BillingService @Inject constructor(@Value("\${currency}") val currency: String) {

docs/asciidoc/modules/weld.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ The Weld extension does a bit more in relation to MVC routes:
9797
automatically registered. No need to register it manually
9898

9999
- The default scope is `prototype` (creates a new instance per request). If you prefer a single
100-
instance add the `javax.inject.Singleton` annotation
100+
instance add the `jakarta.inject.Singleton` annotation
101101

102102
.MVC route
103103
[source, java, role="primary"]

docs/asciidoc/mvc-api.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ one you like most.
183183
[source, java, role = "primary"]
184184
----
185185
186-
import javax.inject.Provider;
186+
import jakarta.inject.Provider;
187187
188188
public class App extends Jooby {
189189
{
@@ -201,7 +201,7 @@ public class App extends Jooby {
201201
.Kotlin
202202
[source, kotlin, role = "secondary"]
203203
----
204-
import javax.inject.Provider
204+
import jakarta.inject.Provider
205205
import io.jooby.*
206206
207207
fun main(args: Array<String>) {
@@ -212,7 +212,7 @@ fun main(args: Array<String>) {
212212
}
213213
----
214214

215-
The javadoc:Jooby[mvc, javax.inject.Provider] does the same job, might or might not delegate
215+
The javadoc:Jooby[mvc, jakarta.inject.Provider] does the same job, might or might not delegate
216216
instantiation to a dependency injection framework but most important let you control lifecycle of
217217
MVC routes (Singleton vs Non-Singleton routes).
218218

docs/asciidoc/value-api.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,14 +401,14 @@ The target `POJO` must follow one of these rules:
401401
- Has a zero argguments/default constructor, or
402402
- Has only one constructor
403403
- Has multiple constructors, but only one is annotated with
404-
https://static.javadoc.io/javax.inject/javax.inject/1/javax/inject/Inject.html[Inject]
404+
https://static.javadoc.io/jakarta.inject/jakarta.inject/1/javax/inject/Inject.html[Inject]
405405

406406
The decoder matches HTTP parameters in the following order:
407407

408408
- As constructor arguments
409409
- As setter method
410410

411-
HTTP parameter name which are not a valid Java identifier must be annotated with https://static.javadoc.io/javax.inject/javax.inject/1/javax/inject/Named.html[Named]:
411+
HTTP parameter name which are not a valid Java identifier must be annotated with https://static.javadoc.io/jakarta.inject/jakarta.inject/1/javax/inject/Named.html[Named]:
412412

413413
.Java
414414
[source, java,role="primary"]

jooby/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@
167167
<optional>true</optional>
168168
</dependency>
169169

170-
<!-- javax.inject -->
170+
<!-- jakarta.inject -->
171171
<dependency>
172-
<groupId>javax.inject</groupId>
173-
<artifactId>javax.inject</artifactId>
172+
<groupId>jakarta.inject</groupId>
173+
<artifactId>jakarta.inject-api</artifactId>
174174
</dependency>
175175

176176
<!-- config -->

jooby/src/main/java/io/jooby/Jooby.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
import javax.annotation.Nonnull;
4545
import javax.annotation.Nullable;
46-
import javax.inject.Provider;
46+
import jakarta.inject.Provider;
4747

4848
import org.slf4j.Logger;
4949
import org.slf4j.LoggerFactory;

jooby/src/main/java/io/jooby/MvcFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package io.jooby;
77

88
import javax.annotation.Nonnull;
9-
import javax.inject.Provider;
9+
import jakarta.inject.Provider;
1010

1111
/**
1212
* Created by a Jooby annotation processor tool using the {@link java.util.ServiceLoader} API.

0 commit comments

Comments
 (0)