File tree 1 file changed +3
-3
lines changed
hibernate-reactive-core/src/main/java/org/hibernate/reactive/context/impl
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public void injectServices(ServiceRegistryImplementor serviceRegistry) {
35
35
public <T > void put (Key <T > key , T instance ) {
36
36
final io .vertx .core .Context context = Vertx .currentContext ();
37
37
if ( context != null ) {
38
- context .put ( key , instance );
38
+ context .putLocal ( key , instance );
39
39
}
40
40
else {
41
41
throw LOG .notVertxContextActive ();
@@ -47,7 +47,7 @@ public <T> void put(Key<T> key, T instance) {
47
47
public <T > T get (Key <T > key ) {
48
48
final io .vertx .core .Context context = Vertx .currentContext ();
49
49
if ( context != null ) {
50
- return (T ) context .get ( key );
50
+ return (T ) context .getLocal ( key );
51
51
}
52
52
else {
53
53
return null ;
@@ -58,7 +58,7 @@ public <T> T get(Key<T> key) {
58
58
public void remove (Key <?> key ) {
59
59
final io .vertx .core .Context context = Vertx .currentContext ();
60
60
if ( context != null ) {
61
- context .remove ( key );
61
+ context .removeLocal ( key );
62
62
}
63
63
}
64
64
You can’t perform that action at this time.
0 commit comments