Deprecate DelegatingApplicationContextInitializer and DelegatingApplicationListener
See gh-36251
This commit is contained in:
parent
c19a0a76c0
commit
bc2899c1ef
|
@ -38,7 +38,10 @@ 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 for removal in 3.4 as property based initialization is no longer recommended
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(since = "3.2.0", forRemoval = true)
|
||||||
public class DelegatingApplicationContextInitializer
|
public class DelegatingApplicationContextInitializer
|
||||||
implements ApplicationContextInitializer<ConfigurableApplicationContext>, Ordered {
|
implements ApplicationContextInitializer<ConfigurableApplicationContext>, Ordered {
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,10 @@ 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 for removal in 3.4 as property based initialization is no longer recommended
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(since = "3.2.0", forRemoval = true)
|
||||||
public class DelegatingApplicationListener implements ApplicationListener<ApplicationEvent>, Ordered {
|
public class DelegatingApplicationListener implements ApplicationListener<ApplicationEvent>, Ordered {
|
||||||
|
|
||||||
// NOTE: Similar to org.springframework.web.context.ContextLoader
|
// NOTE: Similar to org.springframework.web.context.ContextLoader
|
||||||
|
|
|
@ -35,7 +35,10 @@ 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)
|
||||||
class DelegatingApplicationContextInitializerTests {
|
class DelegatingApplicationContextInitializerTests {
|
||||||
|
|
||||||
private final DelegatingApplicationContextInitializer initializer = new DelegatingApplicationContextInitializer();
|
private final DelegatingApplicationContextInitializer initializer = new DelegatingApplicationContextInitializer();
|
||||||
|
|
|
@ -36,7 +36,10 @@ 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)
|
||||||
class DelegatingApplicationListenerTests {
|
class DelegatingApplicationListenerTests {
|
||||||
|
|
||||||
private final DelegatingApplicationListener listener = new DelegatingApplicationListener();
|
private final DelegatingApplicationListener listener = new DelegatingApplicationListener();
|
||||||
|
|
Loading…
Reference in New Issue