-
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.
Correctly ensure ordering via VertxServiceProvider spi + optimize int…
…erceptors
- Loading branch information
Showing
6 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
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
23 changes: 23 additions & 0 deletions
23
...ain/java/io/quarkus/vertx/runtime/storage/QuarkusLocalStorageKeyVertxServiceProvider.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package io.quarkus.vertx.runtime.storage; | ||
|
||
import io.quarkus.arc.InjectableContext; | ||
import io.quarkus.vertx.core.runtime.context.VertxContextSafetyToggle; | ||
import io.vertx.core.impl.VertxBuilder; | ||
import io.vertx.core.spi.VertxServiceProvider; | ||
import io.vertx.core.spi.context.storage.ContextLocal; | ||
|
||
/** | ||
* This provider exists with the sole purpose of reliably get the optimized local keys created before | ||
* the Vertx instance is created. | ||
*/ | ||
public class QuarkusLocalStorageKeyVertxServiceProvider implements VertxServiceProvider { | ||
|
||
public static final ContextLocal<Boolean> ACCESS_TOGGLE_KEY = VertxContextSafetyToggle.registerAccessToggleKey(); | ||
public static final ContextLocal<InjectableContext.ContextState> REQUEST_SCOPED_LOCAL_KEY = ContextLocal | ||
.registerLocal(InjectableContext.ContextState.class); | ||
|
||
@Override | ||
public void init(VertxBuilder builder) { | ||
|
||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...vertx/runtime/src/main/resources/META-INF/services/io.vertx.core.spi.VertxServiceProvider
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
io.quarkus.vertx.runtime.storage.QuarkusLocalStorageKeyVertxServiceProvider |