-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also unify the parameter container detection code paths Make sure we do not turn record parameter containers into beans For records, we store every contructor parameter in a local variable until we have enough to call the constructor via a generated static method. Fixes #19686
- Loading branch information
Showing
18 changed files
with
798 additions
and
266 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
38 changes: 38 additions & 0 deletions
38
...o/quarkus/resteasy/reactive/common/deployment/AggregatedParameterContainersBuildItem.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,38 @@ | ||
package io.quarkus.resteasy.reactive.common.deployment; | ||
|
||
import java.util.Set; | ||
|
||
import org.jboss.jandex.DotName; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
|
||
public final class AggregatedParameterContainersBuildItem extends SimpleBuildItem { | ||
|
||
/** | ||
* This contains all the parameter containers (bean param classes and records) as well as resources/endpoints | ||
*/ | ||
private final Set<DotName> classNames; | ||
/** | ||
* This contains all the non-record parameter containers (bean param classes only) as well as resources/endpoints | ||
*/ | ||
private final Set<DotName> nonRecordClassNames; | ||
|
||
public AggregatedParameterContainersBuildItem(Set<DotName> classNames, Set<DotName> nonRecordClassNames) { | ||
this.classNames = classNames; | ||
this.nonRecordClassNames = nonRecordClassNames; | ||
} | ||
|
||
/** | ||
* All class names | ||
*/ | ||
public Set<DotName> getClassNames() { | ||
return classNames; | ||
} | ||
|
||
/** | ||
* All class names minus the records | ||
*/ | ||
public Set<DotName> getNonRecordClassNames() { | ||
return nonRecordClassNames; | ||
} | ||
} |
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
Oops, something went wrong.