-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 #2332 from mkouba/issue-2319
Dev mode - identify classes generated from all hot deployment paths
- Loading branch information
Showing
3 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...ent/src/main/java/io/quarkus/deployment/builditem/ApplicationClassPredicateBuildItem.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,22 @@ | ||
package io.quarkus.deployment.builditem; | ||
|
||
import java.util.function.Predicate; | ||
|
||
import io.quarkus.builder.item.MultiBuildItem; | ||
|
||
/** | ||
* Makes it possible to identify wiring classes generated for classes from additional hot deployment paths. | ||
*/ | ||
public final class ApplicationClassPredicateBuildItem extends MultiBuildItem { | ||
|
||
private final Predicate<String> predicate; | ||
|
||
public ApplicationClassPredicateBuildItem(Predicate<String> predicate) { | ||
this.predicate = predicate; | ||
} | ||
|
||
public boolean test(String name) { | ||
return predicate.test(name); | ||
} | ||
|
||
} |
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