Skip to content

Commit

Permalink
Require request scope when creating the Resource instance in RESTEasy…
Browse files Browse the repository at this point in the history
… Reactive
  • Loading branch information
geoand committed Aug 4, 2021
1 parent 89f260a commit b326cd6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public void handle(ResteasyReactiveRequestContext requestContext) throws Excepti
if (instance == null) {
synchronized (this) {
if (instance == null) {
requestContext.requireCDIRequestScope();
instance = factory.createInstance().getInstance();
}
}
Expand Down

0 comments on commit b326cd6

Please sign in to comment.