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 Phillip Webb
|
||||
* @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
|
||||
implements ApplicationContextInitializer<ConfigurableApplicationContext>, Ordered {
|
||||
|
||||
|
|
|
@ -40,7 +40,10 @@ import org.springframework.util.StringUtils;
|
|||
* @author Dave Syer
|
||||
* @author Phillip Webb
|
||||
* @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 {
|
||||
|
||||
// NOTE: Similar to org.springframework.web.context.ContextLoader
|
||||
|
|
|
@ -35,7 +35,10 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
|
|||
* Tests for {@link DelegatingApplicationContextInitializer}.
|
||||
*
|
||||
* @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 {
|
||||
|
||||
private final DelegatingApplicationContextInitializer initializer = new DelegatingApplicationContextInitializer();
|
||||
|
|
|
@ -36,7 +36,10 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
* Tests for {@link DelegatingApplicationListener}.
|
||||
*
|
||||
* @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 {
|
||||
|
||||
private final DelegatingApplicationListener listener = new DelegatingApplicationListener();
|
||||
|
|
Loading…
Reference in New Issue