This commit is contained in:
Stephane Nicoll
2022-07-28 16:32:51 +02:00
parent 24fafc2fb7
commit 8e7faab4f6
4 changed files with 7 additions and 3 deletions

View File

@@ -192,6 +192,7 @@ public final class AotServices<T> implements Iterable<T> {
private final SpringFactoriesLoader springFactoriesLoader;
@Nullable
private final ListableBeanFactory beanFactory;
@@ -208,7 +209,7 @@ public final class AotServices<T> implements Iterable<T> {
* @return a new {@link AotServices} instance
*/
public <T> AotServices<T> load(Class<T> type) {
return new AotServices<T>(this.springFactoriesLoader.load(type), loadBeans(type));
return new AotServices<>(this.springFactoriesLoader.load(type), loadBeans(type));
}
private <T> Map<String, T> loadBeans(Class<T> type) {

View File

@@ -60,7 +60,7 @@ public interface BeanRegistrationAotProcessor {
/**
* Return if the bean instance associated with this processor should be
* excluded from AOT processing itself. By default this method will return
* excluded from AOT processing itself. By default, this method returns
* {@code true} to automatically exclude the bean, if the definition should
* be written then this method may be overridden to return {@code true}.
* @return if the bean should be excluded from AOT processing