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.
Fixed @path annotation-lookup Include interfaces in lookup to resolve @path annotation in order to produce correct path-template used for metrics.
- Loading branch information
1 parent
5c26309
commit 2b5dbdf
Showing
5 changed files
with
105 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
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
14 changes: 14 additions & 0 deletions
14
...eter-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/MessageResourceApi.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,14 @@ | ||
package io.quarkus.it.micrometer.prometheus; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.PathParam; | ||
|
||
// Splitting JAX-RS annotations to interfaces tests the behaviour of | ||
// io.quarkus.resteasy.deployment.RestPathAnnotationProcessor | ||
public interface MessageResourceApi extends MessageResourceNestedApi { | ||
|
||
@GET | ||
@Path("match/{id}/{sub}") | ||
String match(@PathParam("id") String id, @PathParam("sub") String sub); | ||
} |
13 changes: 13 additions & 0 deletions
13
...rometheus/src/main/java/io/quarkus/it/micrometer/prometheus/MessageResourceNestedApi.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,13 @@ | ||
package io.quarkus.it.micrometer.prometheus; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.PathParam; | ||
|
||
// Testing deep lookup of Path-annotation | ||
public interface MessageResourceNestedApi { | ||
|
||
@GET | ||
@Path("match/{text}") | ||
String optional(@PathParam("text") String text); | ||
} |