Polish
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user