forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request quarkusio#33750 from michalvavrik/feature/fix-infi…
…nispan-dev-mode-bean-jsonrpc Fix that InifispanJsonRPCService bean is only available in DEV mode when DEV profile is active
- Loading branch information
Showing
5 changed files
with
21 additions
and
12 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
7 changes: 0 additions & 7 deletions
7
...c/main/java/io/quarkus/infinispan/client/runtime/devconsole/InfinispanJsonRPCService.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
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
15 changes: 15 additions & 0 deletions
15
...s/vertx-http/dev-ui-spi/src/main/java/io/quarkus/devui/spi/JsonRPCProvidersBuildItem.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 |
---|---|---|
@@ -1,23 +1,38 @@ | ||
package io.quarkus.devui.spi; | ||
|
||
import org.jboss.jandex.DotName; | ||
|
||
/** | ||
* This allows you to register a class that will provide data during runtime for JsonRPC Requests | ||
*/ | ||
public final class JsonRPCProvidersBuildItem extends AbstractDevUIBuildItem { | ||
|
||
private final Class jsonRPCMethodProviderClass; | ||
private final DotName defaultBeanScope; | ||
|
||
public JsonRPCProvidersBuildItem(Class jsonRPCMethodProviderClass) { | ||
super(); | ||
this.jsonRPCMethodProviderClass = jsonRPCMethodProviderClass; | ||
this.defaultBeanScope = null; | ||
} | ||
|
||
public JsonRPCProvidersBuildItem(Class jsonRPCMethodProviderClass, DotName defaultBeanScope) { | ||
super(); | ||
this.jsonRPCMethodProviderClass = jsonRPCMethodProviderClass; | ||
this.defaultBeanScope = defaultBeanScope; | ||
} | ||
|
||
public JsonRPCProvidersBuildItem(String customIdentifier, Class jsonRPCMethodProviderClass) { | ||
super(customIdentifier); | ||
this.jsonRPCMethodProviderClass = jsonRPCMethodProviderClass; | ||
this.defaultBeanScope = null; | ||
} | ||
|
||
public Class getJsonRPCMethodProviderClass() { | ||
return jsonRPCMethodProviderClass; | ||
} | ||
|
||
public DotName getDefaultBeanScope() { | ||
return defaultBeanScope; | ||
} | ||
} |