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.
ArC - make it possible to identify additional bean archives
(cherry picked from commit c91431c)
- Loading branch information
Showing
2 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...arc/deployment/src/main/java/io/quarkus/arc/deployment/BeanArchivePredicateBuildItem.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,25 @@ | ||
package io.quarkus.arc.deployment; | ||
|
||
import java.util.function.Predicate; | ||
|
||
import io.quarkus.builder.item.MultiBuildItem; | ||
import io.quarkus.deployment.ApplicationArchive; | ||
|
||
/** | ||
* | ||
* By default, only explict/implicit bean archives (as defined by the spec) are considered during the bean discovery. However, | ||
* extensions can register a logic to identify additional bean archives. | ||
*/ | ||
public final class BeanArchivePredicateBuildItem extends MultiBuildItem { | ||
|
||
private final Predicate<ApplicationArchive> predicate; | ||
|
||
public BeanArchivePredicateBuildItem(Predicate<ApplicationArchive> predicate) { | ||
this.predicate = predicate; | ||
} | ||
|
||
public Predicate<ApplicationArchive> getPredicate() { | ||
return predicate; | ||
} | ||
|
||
} |
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