# Deprecated API

## Contents

- Terminally Deprecated
- Interfaces
- Classes
- Fields
- Methods
- Constructors

Terminally Deprecated Elements
Element
Description
org.springframework.context.index.CandidateComponentsIndex
as of 6.1, in favor of the AOT engine.
org.springframework.context.index.CandidateComponentsIndexLoader
as of 6.1, in favor of the AOT engine.
org.springframework.validation.method.MethodValidationResult.getAllValidationResults()
As of Spring Framework 6.2, in favor of `MethodValidationResult.getParameterValidationResults()`
org.springframework.validation.method.ParameterValidationResult(MethodParameter, Object, Collection<? extends MessageSourceResolvable>)
in favor of `ParameterValidationResult(MethodParameter, Object, Collection, Object, Integer, Object, BiFunction)`
org.springframework.validation.method.ParameterValidationResult(MethodParameter, Object, Collection<? extends MessageSourceResolvable>, Object, Integer, Object)
in favor of `ParameterValidationResult(MethodParameter, Object, Collection, Object, Integer, Object, BiFunction)`

Deprecated Interfaces
Interface
Description
org.springframework.ui.context.HierarchicalThemeSource
as of 6.0 in favor of using CSS, without direct replacement
org.springframework.ui.context.Theme
as of 6.0 in favor of using CSS, without direct replacement
org.springframework.ui.context.ThemeSource
as of 6.0 in favor of using CSS, without direct replacement

Deprecated Classes
Class
Description
org.springframework.cache.annotation.CachingConfigurerSupport
as of 6.0 in favor of implementing `CachingConfigurer` directly
org.springframework.context.index.CandidateComponentsIndex
as of 6.1, in favor of the AOT engine.
org.springframework.context.index.CandidateComponentsIndexLoader
as of 6.1, in favor of the AOT engine.
org.springframework.scheduling.annotation.AsyncConfigurerSupport
as of 6.0 in favor of implementing `AsyncConfigurer` directly
org.springframework.scheduling.annotation.AsyncResult
as of 6.0, in favor of `CompletableFuture`
org.springframework.ui.context.support.DelegatingThemeSource
as of 6.0 in favor of using CSS, without direct replacement
org.springframework.ui.context.support.ResourceBundleThemeSource
as of 6.0 in favor of using CSS, without direct replacement
org.springframework.ui.context.support.SimpleTheme
as of 6.0 in favor of using CSS, without direct replacement
org.springframework.ui.context.support.UiApplicationContextUtils
as of 6.0 in favor of using CSS, without direct replacement

Deprecated Fields
Field
Description
org.springframework.jmx.export.MBeanExporter.AUTODETECT_ALL
as of 6.1, in favor of the `"autodetect" flag`
org.springframework.jmx.export.MBeanExporter.AUTODETECT_ASSEMBLER
as of 6.1, in favor of the `"autodetect" flag`
org.springframework.jmx.export.MBeanExporter.AUTODETECT_MBEAN
as of 6.1, in favor of the `"autodetect" flag`
org.springframework.jmx.export.MBeanExporter.AUTODETECT_NONE
as of 6.1, in favor of the `"autodetect" flag`

Deprecated Methods
Method
Description
org.springframework.context.support.AbstractResourceBasedMessageSource.isFallbackToSystemLocale()
as of 5.2.2, in favor of `AbstractResourceBasedMessageSource.getDefaultLocale()`
org.springframework.context.support.PropertySourcesPlaceholderConfigurer.processProperties(ConfigurableListableBeanFactory, Properties)
in favor of `PropertySourcesPlaceholderConfigurer.processProperties(ConfigurableListableBeanFactory, ConfigurablePropertyResolver)`
org.springframework.jmx.export.MBeanExporter.setAutodetectMode(int)
as of 6.1, in favor of the `"autodetect" flag`
org.springframework.jmx.export.MBeanExporter.setAutodetectModeName(String)
as of 6.1, in favor of the `"autodetect" flag`
org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor.createRunnable(Object, Method)
in favor of `ScheduledAnnotationBeanPostProcessor.createRunnable(Object, Method, String)`
org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.execute(Runnable, long)
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.isRemoveOnCancelPolicy()
as of 5.3.9, in favor of direct `ThreadPoolTaskScheduler.getScheduledThreadPoolExecutor()` access
org.springframework.scheduling.config.IntervalTask.getInitialDelay()
as of 6.0, in favor of `IntervalTask.getInitialDelayDuration()`
org.springframework.scheduling.config.IntervalTask.getInterval()
as of 6.0, in favor of `IntervalTask.getIntervalDuration()`
org.springframework.scheduling.config.ScheduledTaskRegistrar.addFixedDelayTask(Runnable, long)
as of 6.0, in favor of `ScheduledTaskRegistrar.addFixedDelayTask(Runnable, Duration)`
org.springframework.scheduling.config.ScheduledTaskRegistrar.addFixedRateTask(Runnable, long)
as of 6.0, in favor of `ScheduledTaskRegistrar.addFixedRateTask(Runnable, Duration)`
org.springframework.scheduling.support.PeriodicTrigger.getInitialDelay()
as of 6.0, in favor on `PeriodicTrigger.getInitialDelayDuration()`
org.springframework.scheduling.support.PeriodicTrigger.getPeriod()
as of 6.0, in favor on `PeriodicTrigger.getPeriodDuration()`
org.springframework.scheduling.support.PeriodicTrigger.getTimeUnit()
as of 6.0, with no direct replacement
org.springframework.scheduling.support.PeriodicTrigger.setInitialDelay(long)
as of 6.0, in favor of `PeriodicTrigger.setInitialDelay(Duration)`
org.springframework.scheduling.support.SimpleTriggerContext.update(Date, Date, Date)
as of 6.0, in favor of `SimpleTriggerContext.update(Instant, Instant, Instant)`
org.springframework.scheduling.TaskScheduler.schedule(Runnable, Date)
as of 6.0, in favor of `TaskScheduler.schedule(Runnable, Instant)`
org.springframework.scheduling.TaskScheduler.scheduleAtFixedRate(Runnable, long)
as of 6.0, in favor of `TaskScheduler.scheduleAtFixedRate(Runnable, Duration)`
org.springframework.scheduling.TaskScheduler.scheduleAtFixedRate(Runnable, Date, long)
as of 6.0, in favor of `TaskScheduler.scheduleAtFixedRate(Runnable, Instant, Duration)`
org.springframework.scheduling.TaskScheduler.scheduleWithFixedDelay(Runnable, long)
as of 6.0, in favor of `TaskScheduler.scheduleWithFixedDelay(Runnable, Duration)`
org.springframework.scheduling.TaskScheduler.scheduleWithFixedDelay(Runnable, Date, long)
as of 6.0, in favor of `TaskScheduler.scheduleWithFixedDelay(Runnable, Instant, Duration)`
org.springframework.scheduling.Trigger.nextExecutionTime(TriggerContext)
as of 6.0, in favor of `Trigger.nextExecution(TriggerContext)`
org.springframework.scheduling.TriggerContext.lastActualExecutionTime()
as of 6.0, in favor on `TriggerContext.lastActualExecution()`
org.springframework.scheduling.TriggerContext.lastCompletionTime()
as of 6.0, in favor on `TriggerContext.lastCompletion()`
org.springframework.scheduling.TriggerContext.lastScheduledExecutionTime()
as of 6.0, in favor on `TriggerContext.lastScheduledExecution()`
org.springframework.validation.method.MethodValidationResult.getAllValidationResults()
As of Spring Framework 6.2, in favor of `MethodValidationResult.getParameterValidationResults()`

Deprecated Constructors
Constructor
Description
org.springframework.scheduling.concurrent.ConcurrentTaskExecutor()
in favor of `ConcurrentTaskExecutor(Executor)` with an externally provided Executor
org.springframework.scheduling.concurrent.ConcurrentTaskScheduler()
in favor of `ConcurrentTaskScheduler(ScheduledExecutorService)` with an externally provided Executor
org.springframework.scheduling.config.FixedDelayTask(Runnable, long, long)
as of 6.0, in favor on `FixedDelayTask(Runnable, Duration, Duration)`
org.springframework.scheduling.config.FixedRateTask(Runnable, long, long)
as of 6.0, in favor on `FixedRateTask(Runnable, Duration, Duration)`
org.springframework.scheduling.config.IntervalTask(Runnable, long)
as of 6.0, in favor on `IntervalTask(Runnable, Duration)`
org.springframework.scheduling.config.IntervalTask(Runnable, long, long)
as of 6.0, in favor on `IntervalTask(Runnable, Duration, Duration)`
org.springframework.scheduling.support.PeriodicTrigger(long)
as of 6.0, in favor on `PeriodicTrigger(Duration)`
org.springframework.scheduling.support.PeriodicTrigger(long, TimeUnit)
as of 6.0, in favor on `PeriodicTrigger(Duration)`
org.springframework.scheduling.support.SimpleTriggerContext(Date, Date, Date)
as of 6.0, in favor of `SimpleTriggerContext(Instant, Instant, Instant)`
org.springframework.validation.method.ParameterValidationResult(MethodParameter, Object, Collection<? extends MessageSourceResolvable>)
in favor of `ParameterValidationResult(MethodParameter, Object, Collection, Object, Integer, Object, BiFunction)`
org.springframework.validation.method.ParameterValidationResult(MethodParameter, Object, Collection<? extends MessageSourceResolvable>, Object, Integer, Object)
in favor of `ParameterValidationResult(MethodParameter, Object, Collection, Object, Integer, Object, BiFunction)`