Resolve AOT factory method target by bean name and reduce reflective method exposure

Includes consistent withShortcut naming and consistent bean definition flag exposure.
Removes support for inner classes in alignment with standard core container behavior.

Closes gh-32834
This commit is contained in:
Juergen Hoeller
2024-09-24 18:59:08 +02:00
parent aef5143642
commit d6e4bd7c90
12 changed files with 494 additions and 584 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-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.
@@ -20,17 +20,16 @@ import org.springframework.core.env.Environment;
public class InnerComponentConfiguration {
public class NoDependencyComponent {
public static class NoDependencyComponent {
public NoDependencyComponent() {
}
}
public class EnvironmentAwareComponent {
public static class EnvironmentAwareComponent {
public EnvironmentAwareComponent(Environment environment) {
}
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-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.
@@ -20,9 +20,6 @@ import java.io.IOException;
public class SimpleConfiguration {
public SimpleConfiguration() {
}
public String stringBean() {
return "Hello";
}