-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Allow injection of RoutingContext in RESTEasy Reactive
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...eployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/HelloService.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
package io.quarkus.resteasy.reactive.server.test.simple; | ||
|
||
import java.util.Objects; | ||
|
||
import javax.enterprise.context.RequestScoped; | ||
import javax.inject.Inject; | ||
|
||
import io.vertx.ext.web.RoutingContext; | ||
|
||
@RequestScoped | ||
public class HelloService { | ||
|
||
@Inject | ||
RoutingContext context; | ||
|
||
public String sayHello() { | ||
Objects.requireNonNull(context); | ||
return "Hello"; | ||
} | ||
} |
This file contains 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