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