Polish contribution

See gh-36251
pull/36422/head
Stephane Nicoll 1 year ago
parent bc2899c1ef
commit 60df7e3bce

@ -61,7 +61,6 @@ Spring Boot loads a number of such customizations for use internally from `META-
There is more than one way to register additional customizations: There is more than one way to register additional customizations:
* Programmatically, per application, by calling the `addListeners` and `addInitializers` methods on `SpringApplication` before you run it. * Programmatically, per application, by calling the `addListeners` and `addInitializers` methods on `SpringApplication` before you run it.
* Declaratively, per application, by setting the `context.initializer.classes` or `context.listener.classes` properties.
* Declaratively, for all applications, by adding a `META-INF/spring.factories` and packaging a jar file that the applications all use as a library. * Declaratively, for all applications, by adding a `META-INF/spring.factories` and packaging a jar file that the applications all use as a library.
The `SpringApplication` sends some special `ApplicationEvents` to the listeners (some even before the context is created) and then registers the listeners for events published by the `ApplicationContext` as well. The `SpringApplication` sends some special `ApplicationEvents` to the listeners (some even before the context is created) and then registers the listeners for events published by the `ApplicationContext` as well.

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -38,8 +38,8 @@ import org.springframework.util.StringUtils;
* @author Dave Syer * @author Dave Syer
* @author Phillip Webb * @author Phillip Webb
* @since 1.0.0 * @since 1.0.0
* * @deprecated since 3.2.0 for removal in 3.4.0 as property based initialization is no
* @deprecated since 3.2 for removal in 3.4 as property based initialization is no longer recommended * longer recommended
*/ */
@Deprecated(since = "3.2.0", forRemoval = true) @Deprecated(since = "3.2.0", forRemoval = true)
public class DelegatingApplicationContextInitializer public class DelegatingApplicationContextInitializer

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2022 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -40,8 +40,8 @@ import org.springframework.util.StringUtils;
* @author Dave Syer * @author Dave Syer
* @author Phillip Webb * @author Phillip Webb
* @since 1.0.0 * @since 1.0.0
* * @deprecated since 3.2.0 for removal in 3.4.0 as property based initialization is no
* @deprecated since 3.2 for removal in 3.4 as property based initialization is no longer recommended * longer recommended
*/ */
@Deprecated(since = "3.2.0", forRemoval = true) @Deprecated(since = "3.2.0", forRemoval = true)
public class DelegatingApplicationListener implements ApplicationListener<ApplicationEvent>, Ordered { public class DelegatingApplicationListener implements ApplicationListener<ApplicationEvent>, Ordered {

@ -35,10 +35,9 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
* Tests for {@link DelegatingApplicationContextInitializer}. * Tests for {@link DelegatingApplicationContextInitializer}.
* *
* @author Phillip Webb * @author Phillip Webb
*
* @deprecated since 3.2 for removal in 3.4 as property based initialization is no longer recommended
*/ */
@Deprecated(since = "3.2.0", forRemoval = true) @Deprecated(since = "3.2.0", forRemoval = true)
@SuppressWarnings("removal")
class DelegatingApplicationContextInitializerTests { class DelegatingApplicationContextInitializerTests {
private final DelegatingApplicationContextInitializer initializer = new DelegatingApplicationContextInitializer(); private final DelegatingApplicationContextInitializer initializer = new DelegatingApplicationContextInitializer();

@ -36,10 +36,9 @@ import static org.assertj.core.api.Assertions.assertThat;
* Tests for {@link DelegatingApplicationListener}. * Tests for {@link DelegatingApplicationListener}.
* *
* @author Dave Syer * @author Dave Syer
*
* @deprecated since 3.2 for removal in 3.4 as property based initialization is no longer recommended
*/ */
@Deprecated(since = "3.2.0", forRemoval = true) @Deprecated(since = "3.2.0", forRemoval = true)
@SuppressWarnings("removal")
class DelegatingApplicationListenerTests { class DelegatingApplicationListenerTests {
private final DelegatingApplicationListener listener = new DelegatingApplicationListener(); private final DelegatingApplicationListener listener = new DelegatingApplicationListener();

Loading…
Cancel
Save