Commit Graph

470 Commits

Author SHA1 Message Date
Olga Maciaszek-Sharma
9449edf93b Refresh Scope on restart. (#1266)
* Refresh Scope on restart.
2023-09-21 16:16:16 +02:00
Ryan Baxter
a51f56f47d Merge branch '4.0.x' 2023-09-08 09:19:15 -04:00
Ryan Baxter
ea1fc56772 Clarify property docs. Fixes #1264 2023-09-08 09:12:57 -04:00
Olga MaciaszekSharma
db4a1bbd75 Temporarily disable test. 2023-07-27 12:40:46 +02:00
Olga MaciaszekSharma
8fdedcfa42 Merge remote-tracking branch 'origin/4.0.x' 2023-07-20 10:42:52 +02:00
Olga MaciaszekSharma
6ce1debaf2 Merge remote-tracking branch 'origin/3.1.x' into 4.0.x 2023-07-20 10:37:23 +02:00
Olga MaciaszekSharma
989ed7dc15 Use classloader from class. 2023-07-20 10:24:57 +02:00
Olga Maciaszek-Sharma
464a9820fd Use classloader from class. (#1256) 2023-07-20 10:24:29 +02:00
Dave Syer
e090bd234f Fix dependencies 2023-06-28 14:46:08 +00:00
Dave Syer
f0ccaf01ac Remove obsolete code 2023-06-28 12:31:42 +00:00
Olga MaciaszekSharma
1a04b22591 Merge remote-tracking branch 'origin/4.0.x' 2023-06-26 17:54:34 +02:00
Olga MaciaszekSharma
a22bb12e75 Add missing reflection hints for EncryptionBootstrapConfiguration. Fixes gh-1245. 2023-06-26 17:53:59 +02:00
buildmaster
3df50061ac Bumping versions 2023-06-21 23:49:09 +00:00
spencergibb
5b4a46fc60 formattingˆ 2023-06-21 13:58:54 -04:00
spencergibb
c682b2de1d Uses a custom event to share the SpringApplication.
Rather than RestartListener republishing the ApplicationPreparedEvent, a new event, ContextRefreshedWithApplicationEvent, is published with the data from the original event. Listeners were refactored to listen to the new event instead.

Fixes gh-1248
2023-06-21 13:58:54 -04:00
spencergibb
d0f6d2b2e9 Uses a custom event to share the SpringApplication.
Rather than RestartListener republishing the ApplicationPreparedEvent, a new event, ContextRefreshedWithApplicationEvent, is published with the data from the original event. Listeners were refactored to listen to the new event instead.

Fixes gh-1248
2023-06-21 13:57:07 -04:00
spencergibb
443d0e89f4 Updates to 4.1.0-SNAPSHOT 2023-06-13 13:50:26 -04:00
spencergibb
9cb8802f74 Updates for boot 3.2 compatibility 2023-06-13 13:44:33 -04:00
Ryan Baxter
ac709ec6e2 Merge branch '3.1.x' 2023-05-04 15:26:49 -04:00
Ryan Baxter
2f467e5823 Add application listener to locate property sources during bootstrap (#1228)
* Add application listener to locate property sources during bootstrap

Also adds support for activating profiles using spring.profiles.active from bootstrap property source listeners.

Allow profiles to be passed from bootstrap context to main application context

* Add application listener to locate property sources during bootstrap

Also adds support for activating profiles using spring.profiles.active from bootstrap property source listeners.

Allow profiles to be passed from bootstrap context to main application context

Updating version in docs
2023-05-04 15:06:20 -04:00
Ryan Baxter
f990f1c8cf Remove unused parameters in reinitializeLoggingSystem. Fixes #1200 2023-01-30 08:05:02 -05:00
Krishna
a6c5d438fe Removed ModifiedClasspathRunner and used the ClasspathExtensions from the Spring boot test support (#1181) 2023-01-23 11:46:30 +01:00
Olga Maciaszek-Sharma
097959a64a Merge remote-tracking branch 'origin/3.1.x' 2023-01-17 14:00:36 +01:00
qingshanpeng
483798a7d2 add override annotation for ScopeCache child class 2023-01-17 13:56:30 +01:00
Ryan Baxter
34687af510 Use spring.config.activate.on-profile instead of spring.profiles for Boot 3 compatibility. Fixes #1177 (#1182)
Co-authored-by: Ryan Baxter <524254+ryanjbaxter@users.noreply.github.com>
2022-12-15 08:58:35 -05:00
Olga Maciaszek-Sharma
78eb9a0fd6 Lazily initialize child contexts with AOT initializers. (#1176) 2022-11-30 21:01:45 +01:00
Olga Maciaszek-Sharma
efe5131a36 Remove some deprecated API usage, switch to newer JDK api usages, refactor. 2022-11-08 13:57:03 +01:00
spencergibb
0a4ee74bca Merge branch '3.1.x' 2022-10-27 11:51:56 -04:00
spencergibb
3a582dc603 Adds rebind/refresh an individual bean by type
Fixes gh-1162
2022-10-27 11:51:04 -04:00
spencergibb
d1dba70bbf Adds rebind/refresh an individual bean by type
Fixes gh-1162
2022-10-27 11:43:45 -04:00
Ryan Baxter
7afddc8eb8 Destroy and initialize beans within the correct context. Fixes #1158 (#1160)
Co-authored-by: Ryan Baxter <524254+ryanjbaxter@users.noreply.github.com>
2022-10-25 09:06:31 -04:00
Ryan Baxter
86c44de855 Destroy and initialize beans within the correct context. Fixes #1158 (#1160)
Co-authored-by: Ryan Baxter <524254+ryanjbaxter@users.noreply.github.com>
2022-10-25 09:05:18 -04:00
spencergibb
b18ea82607 Fixes test 2022-10-10 14:28:10 -04:00
spencergibb
733e9f3ee8 Fixes test 2022-10-10 14:24:13 -04:00
Misagh Moayyed
5dc06fefc7 add @AliasFor declaration for RefreshScope (#1151) 2022-09-29 13:12:09 -04:00
spencergibb
77fc4dc628 Migrates to AutoConfiguration.imports
Fixes gh-1150
2022-09-21 17:37:38 -04:00
Ryan Baxter
9eb3a08c14 Fixing EnvironmentEndpoints to work with new constructors. Fixes #1137 2022-08-29 19:33:48 -04:00
Olga Maciaszek-Sharma
94ab8728fb Support LoadBalancer child context creation during AOT processing (#1135) 2022-08-11 17:00:33 +02:00
Olga Maciaszek-Sharma
c2a22346cd Fix @LocalServerPort and @LocalManagementPort imports. 2022-05-18 14:08:08 +02:00
Olga Maciaszek-Sharma
4682d0535c Merge remote-tracking branch 'origin/3.1.x' 2022-04-21 16:23:10 +02:00
Tommy Karlsson
e293e694cb Inject the class loader from the parent context into the child context (#1098) 2022-04-21 16:21:30 +02:00
Ryan Baxter
f1be8803cc Make class abstract. Fixes #1069 2022-02-17 19:42:51 -05:00
spencergibb
14efdc71c7 formatting 2022-01-26 16:31:33 -05:00
spencergibb
0d7722dec8 Restores bootstrap functionality. 2022-01-20 11:47:53 -05:00
spencergibb
4d9d242841 Compatibility updates for framework 6 and boot 3 2022-01-03 16:26:26 -05:00
spencergibb
4967442474 Re-enables disabled tests.
Fixes gh-1042
2021-11-29 12:14:52 -05:00
spencergibb
e47a3a08ce Temporarily disables tests.
See gh-1042
2021-11-22 14:47:25 -05:00
Tim te Beek
95ce58741d Increase JUnit5 usage (#1020) 2021-10-20 15:42:11 +02:00
干货满满张哈希
bc0d54bfd3 add getter for parent to fix: https://github.com/spring-cloud/spring-cloud-sleuth/issues/2023 (#1012) 2021-09-21 12:28:17 +02:00
qxo
b647ccb86a fix: remove unnecessary code (#1000)
new StandardEnvironment will add systemProperties/systemEnvironment PropertySource within its constructor which we do not need.
**we should not create object which do something we do not want, then undo it**
2021-08-16 10:00:56 -04:00