File tree Expand file tree Collapse file tree 3 files changed +40
-36
lines changed
embedded-keycloak-server-spring-boot-support/src/main/java/com/github/thomasdarimont/keycloak/embedded/support Expand file tree Collapse file tree 3 files changed +40
-36
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ package com .github .thomasdarimont .keycloak .embedded .support ;
2+
3+ import com .google .auto .service .AutoService ;
4+ import org .jboss .resteasy .core .ResteasyContext ;
5+ import org .jboss .resteasy .spi .Dispatcher ;
6+ import org .keycloak .common .util .ResteasyProvider ;
7+
8+ import java .util .Map ;
9+
10+ @ AutoService (ResteasyProvider .class )
11+ public class Resteasy4Provider implements ResteasyProvider {
12+
13+ @ Override
14+ public <R > R getContextData (Class <R > type ) {
15+ return ResteasyContext .getContextData (type );
16+ }
17+
18+ @ Override
19+ public void pushDefaultContextObject (Class type , Object instance ) {
20+ Dispatcher dispatcher = ResteasyContext .getContextData (Dispatcher .class );
21+ Map <Class , Object > defaultContextObjects = dispatcher .getDefaultContextObjects ();
22+ defaultContextObjects .put (type , instance );
23+ }
24+
25+ @ Override
26+ public void pushContext (Class type , Object instance ) {
27+ ResteasyContext .pushContext (type , instance );
28+ }
29+
30+ @ Override
31+ public void clearContextData () {
32+ ResteasyContext .clearContextData ();
33+ }
34+
35+ }
Original file line number Diff line number Diff line change 2525 <maven .compiler.target>${java.version} </maven .compiler.target>
2626 <maven .compiler.release>${java.version} </maven .compiler.release>
2727
28- <keycloak .version>15 .1.1</keycloak .version>
29- <resteasy .version>3.15.1 .Final</resteasy .version>
30- <infinispan .version>11.0.9 .Final</infinispan .version>
31- <jgroups .version>4.2.11 .Final</jgroups .version>
32- <smallrye-metrics .version>3.0.1 </smallrye-metrics .version>
28+ <keycloak .version>16 .1.1</keycloak .version>
29+ <resteasy .version>4.7.4 .Final</resteasy .version>
30+ <infinispan .version>12.1.7 .Final</infinispan .version>
31+ <jgroups .version>4.2.15 .Final</jgroups .version>
32+ <smallrye-metrics .version>3.0.3 </smallrye-metrics .version>
3333 <liquibase .version>3.6.3</liquibase .version>
3434
3535 <auto-service .version>1.0.1</auto-service .version>
You can’t perform that action at this time.
0 commit comments