|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2012-2023 the original author or authors. |
|
|
|
|
* Copyright 2012-2024 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -68,8 +68,8 @@ class ServiceConnectionAutoConfigurationRegistrar implements ImportBeanDefinitio
@@ -68,8 +68,8 @@ class ServiceConnectionAutoConfigurationRegistrar implements ImportBeanDefinitio
|
|
|
|
|
|
|
|
|
|
private Set<ServiceConnection> getAnnotations(ConfigurableListableBeanFactory beanFactory, String beanName, |
|
|
|
|
BeanDefinition beanDefinition) { |
|
|
|
|
Set<ServiceConnection> annotations = new LinkedHashSet<>(); |
|
|
|
|
annotations.addAll(beanFactory.findAllAnnotationsOnBean(beanName, ServiceConnection.class, false)); |
|
|
|
|
Set<ServiceConnection> annotations = new LinkedHashSet<>( |
|
|
|
|
beanFactory.findAllAnnotationsOnBean(beanName, ServiceConnection.class, false)); |
|
|
|
|
if (beanDefinition instanceof TestcontainerBeanDefinition testcontainerBeanDefinition) { |
|
|
|
|
testcontainerBeanDefinition.getAnnotations() |
|
|
|
|
.stream(ServiceConnection.class) |
|
|
|
|
|