Top For Removal Deprecated
Spring Beans 6.1.4

Deprecated API


Terminally Deprecated Item Summary

SinceTerminally Deprecated Item and Description
6.0.11

Returns:

a new BeanInstanceSupplier instance with the specified generator
org.springframework.beans.factory.aot.BeanInstanceSupplier.withGenerator
(ThrowingSupplier<T>
a ThrowingSupplier to instantiate the underlying bean
generator
)

in favor of withGenerator(ThrowingFunction)

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

the new instance
org.springframework.beans.BeanUtils.instantiate
(Class<T>
class to instantiate
clazz
)

as of Spring 5.0, following the deprecation of Class#newInstance() in JDK 9

org.springframework.beans.factory.config.AutowireCapableBeanFactory.AUTOWIRE_AUTODETECT

as of Spring 3.0: If you are using mixed autowiring strategies, prefer annotation-based autowiring for clearer demarcation of autowiring needs.

6.1

Returns:

the bean instance to use, either the original or a wrapped one
org.springframework.beans.factory.config.AutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization
(Object
the existing bean instance
existingBean
,
String
the name of the bean, to be passed to it if necessary (only passed to BeanPostProcessors; can follow the ORIGINAL_INSTANCE_SUFFIX convention in order to enforce the given instance to be returned, i.e. no proxies etc)
beanName
)

as of 6.1, in favor of implicit post-processing through initializeBean(Object, String)

6.1

Returns:

the bean instance to use, either the original or a wrapped one
org.springframework.beans.factory.config.AutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization
(Object
the existing bean instance
existingBean
,
String
the name of the bean, to be passed to it if necessary (only passed to BeanPostProcessors; can follow the ORIGINAL_INSTANCE_SUFFIX convention in order to enforce the given instance to be returned, i.e. no proxies etc)
beanName
)

as of 6.1, in favor of implicit post-processing through initializeBean(Object, String)

6.1

Returns:

the new bean instance
org.springframework.beans.factory.config.AutowireCapableBeanFactory.createBean
(Class<?>
the class of the bean to create
beanClass
,
int
by name or type, using the constants in this interface
autowireMode
,
boolean
whether to perform a dependency check for objects (not applicable to autowiring a constructor, thus ignored there)
dependencyCheck
)

as of 6.1, in favor of createBean(Class)

org.springframework.beans.factory.config.PropertyPlaceholderConfigurer

as of 5.2; use org.springframework.context.support.PropertySourcesPlaceholderConfigurer instead which is more flexible through taking advantage of the org.springframework.core.env.Environment and org.springframework.core.env.PropertySource mechanisms.

6.1
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(Object
the existing bean instance
existingBean
,
String
the name of the bean, to be passed to it if necessary (only passed to BeanPostProcessors; can follow the ORIGINAL_INSTANCE_SUFFIX convention in order to enforce the given instance to be returned, i.e. no proxies etc)
beanName
)

6.1
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(Object
the existing bean instance
existingBean
,
String
the name of the bean, to be passed to it if necessary (only passed to BeanPostProcessors; can follow the ORIGINAL_INSTANCE_SUFFIX convention in order to enforce the given instance to be returned, i.e. no proxies etc)
beanName
)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Class<?>
the class of the bean to create
beanClass
,
int
by name or type, using the constants in this interface
autowireMode
,
boolean
whether to perform a dependency check for objects (not applicable to autowiring a constructor, thus ignored there)
dependencyCheck
)

org.springframework.beans.factory.support.AbstractBeanDefinition.AUTOWIRE_AUTODETECT

as of Spring 3.0: If you are using mixed autowiring strategies, use annotation-based autowiring for clearer demarcation of autowiring needs.

org.springframework.beans.factory.support.PropertiesBeanDefinitionReader

as of 5.3, in favor of Spring's common bean definition formats and/or custom reader implementations

6.0.11
org.springframework.beans.factory.support.RootBeanDefinition.RootBeanDefinition(ResolvableType
the type of bean to instantiate
beanType
)

as of 6.0.11, in favor of an extra setTargetType(ResolvableType) call