Skip to content

Commit

Permalink
Merge pull request #28805 from geoand/arc-getbeans
Browse files Browse the repository at this point in the history
Introduce proper method name for RegisteredComponentsBuildItem
  • Loading branch information
geoand authored Oct 25, 2022
2 parents 8b6fbc8 + 600b26e commit ccd206a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,21 @@ public RegisteredComponentsBuildItem(BeanDeployment beanDeployment) {

/**
* @return the registered beans
*
* @deprecated in favor of {@link #getBeans()}
*/
@Deprecated(forRemoval = true)
public Collection<BeanInfo> geBeans() {
return beans;
}

/**
* @return the registered beans
*/
public Collection<BeanInfo> getBeans() {
return beans;
}

/**
* @return the registered injection points
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private Optional<DotName> findCacheKeyGenerator(AnnotationInstance binding, Anno
// Key generators must have a default constructor if they are not managed by Arc.
private List<Throwable> validateKeyGeneratorsDefaultConstructor(CombinedIndexBuildItem combinedIndex,
BeanDiscoveryFinishedBuildItem beanDiscoveryFinished, Set<DotName> keyGenerators) {
List<DotName> managedBeans = beanDiscoveryFinished.geBeans()
List<DotName> managedBeans = beanDiscoveryFinished.getBeans()
.stream()
.filter(BeanInfo::isClassBean)
.map(BeanInfo::getBeanClass)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class WiringProcessor {
@BuildStep
void discoverConnectors(BeanDiscoveryFinishedBuildItem beans, CombinedIndexBuildItem index,
BuildProducer<ConnectorBuildItem> builder) {
beans.geBeans().stream()
beans.getBeans().stream()
.filter(bi -> bi.getQualifier(ReactiveMessagingDotNames.CONNECTOR).isPresent())
.forEach(bi -> {
if (isInboundConnector(bi.getImplClazz())) {
Expand Down

0 comments on commit ccd206a

Please sign in to comment.