File tree 2 files changed +10
-1
lines changed
spring-boot-project/spring-boot/src/main/java/org/springframework/boot
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,15 @@ public interface Bootstrapper {
31
31
* Initialize the given {@link BootstrapRegistry} with any required registrations.
32
32
* @param registry the registry to initialize
33
33
*/
34
+ default void initialize (BootstrapRegistry registry ) {
35
+ }
36
+
37
+ /**
38
+ * Initialize the given {@link BootstrapRegistry} with any required registrations.
39
+ * @param registry the registry to initialize
40
+ * @deprecated since 2.4.4 in favor of {@link Bootstrapper#initialize(BootstrapRegistry)}
41
+ */
42
+ @ Deprecated
34
43
void intitialize (BootstrapRegistry registry );
35
44
36
45
}
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ public ConfigurableApplicationContext run(String... args) {
349
349
350
350
private DefaultBootstrapContext createBootstrapContext () {
351
351
DefaultBootstrapContext bootstrapContext = new DefaultBootstrapContext ();
352
- this .bootstrappers .forEach ((initializer ) -> initializer .intitialize (bootstrapContext ));
352
+ this .bootstrappers .forEach ((initializer ) -> initializer .initialize (bootstrapContext ));
353
353
return bootstrapContext ;
354
354
}
355
355
You can’t perform that action at this time.
0 commit comments