Skip navigation links
spring-beans
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Classes
  • Fields
  • Methods
  • Constructors
  • Terminally Deprecated Elements
    Element
    Description
    org.springframework.beans.factory.aot.BeanInstanceSupplier.withGenerator(ThrowingSupplier<T>)
    in favor of BeanInstanceSupplier.withGenerator(ThrowingFunction)
  • Deprecated Classes
    Class
    Description
    org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
    as of 5.2, along with PropertyPlaceholderConfigurer
    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 Environment and PropertySource mechanisms.
    org.springframework.beans.factory.support.PropertiesBeanDefinitionReader
    as of 5.3, in favor of Spring's common bean definition formats and/or custom reader implementations
  • Deprecated Fields
    Field
    Description
    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.
    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.
  • Deprecated Methods
    Method
    Description
    org.springframework.beans.BeanUtils.instantiate(Class<T>)
    as of Spring 5.0, following the deprecation of Class.newInstance() in JDK 9
    org.springframework.beans.factory.aot.BeanInstanceSupplier.withGenerator(ThrowingSupplier<T>)
    in favor of BeanInstanceSupplier.withGenerator(ThrowingFunction)
  • Deprecated Constructors
    Constructor
    Description
    org.springframework.beans.factory.support.RootBeanDefinition(ResolvableType)
    as of 6.0.11, in favor of an extra RootBeanDefinition.setTargetType(ResolvableType) call