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
Ensure that resteasy rest-client uses QuarkusInjectorFactory as well
- Loading branch information
Showing
12 changed files
with
73 additions
and
41 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
.../src/main/java/io/quarkus/resteasy/common/deployment/ResteasyInjectionReadyBuildItem.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.resteasy.common.deployment; | ||
|
||
import org.jboss.resteasy.spi.InjectorFactory; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
import io.quarkus.runtime.RuntimeValue; | ||
|
||
/** | ||
* Gives access to the configured {@link InjectorFactory} | ||
* Can also be used as a marker indicating the RESTEasy injection has been properly set up | ||
*/ | ||
public final class ResteasyInjectionReadyBuildItem extends SimpleBuildItem { | ||
|
||
private final RuntimeValue<InjectorFactory> injectorFactory; | ||
|
||
public ResteasyInjectionReadyBuildItem(RuntimeValue<InjectorFactory> injectorFactory) { | ||
this.injectorFactory = injectorFactory; | ||
} | ||
|
||
public RuntimeValue<InjectorFactory> getInjectorFactory() { | ||
return injectorFactory; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...n/runtime/QuarkusConstructorInjector.java → ...n/runtime/QuarkusConstructorInjector.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
2 changes: 1 addition & 1 deletion
2
...ommon/runtime/QuarkusInjectorFactory.java → ...ommon/runtime/QuarkusInjectorFactory.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
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
10 changes: 0 additions & 10 deletions
10
...in/java/io/quarkus/resteasy/server/common/deployment/ResteasyInjectionReadyBuildItem.java
This file was deleted.
Oops, something went wrong.
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