Top For Removal Deprecated
Spring Context 6.1.4

Deprecated API


Terminally Deprecated Item Summary

SinceTerminally Deprecated Item and Description
6.1
org.springframework.context.index.CandidateComponentsIndex

as of 6.1, in favor of the AOT engine.

6.1
6.1.3

Deprecated Item Summary

SinceDeprecated Item and Description
6.0
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.addCandidateComponentsFromIndex(CandidateComponentsIndex index, String basePackage)

Deprecated as a consequence of CandidateComponentsIndex being deprecated. See corresponding docs for further information.

org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.componentsIndex

Deprecated as a consequence of CandidateComponentsIndex being deprecated. See corresponding docs for further information.

org.springframework.context.index.CandidateComponentsIndexLoader.doLoadIndex(ClassLoader classLoader)

Deprecated as a consequence of CandidateComponentsIndex being deprecated. See corresponding docs for further information.

Returns:

the index to use or null if no index was found
org.springframework.context.index.CandidateComponentsIndexLoader.loadIndex
(ClassLoader
the ClassLoader to use for loading (can be null to use the default)
classLoader
)

Deprecated as a consequence of CandidateComponentsIndex being deprecated. See corresponding docs for further information.

6.1
6.1
6.1
6.1
6.1
6.1
6.0

Returns:

a ScheduledFuture representing pending completion of the task
org.springframework.scheduling.TaskScheduler.schedule
(Runnable
the Runnable to execute whenever the trigger fires
task
,
Date
the desired execution time for the task (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
startTime
)

as of 6.0, in favor of schedule(Runnable, Instant)

6.0

Returns:

a ScheduledFuture representing pending completion of the task
org.springframework.scheduling.TaskScheduler.scheduleAtFixedRate
(Runnable
the Runnable to execute whenever the trigger fires
task
,
Date
the desired first execution time for the task (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
startTime
,
long
the interval between successive executions of the task (in milliseconds)
period
)

as of 6.0, in favor of scheduleAtFixedRate(Runnable, Instant, Duration)

6.0

Returns:

a ScheduledFuture representing pending completion of the task
org.springframework.scheduling.TaskScheduler.scheduleAtFixedRate
(Runnable
the Runnable to execute whenever the trigger fires
task
,
long
the interval between successive executions of the task (in milliseconds)
period
)

as of 6.0, in favor of scheduleAtFixedRate(Runnable, Duration)

6.0

Returns:

a ScheduledFuture representing pending completion of the task
org.springframework.scheduling.TaskScheduler.scheduleWithFixedDelay
(Runnable
the Runnable to execute whenever the trigger fires
task
,
Date
the desired first execution time for the task (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
startTime
,
long
the delay between the completion of one execution and the start of the next (in milliseconds)
delay
)

as of 6.0, in favor of scheduleWithFixedDelay(Runnable, Instant, Duration)

6.0

Returns:

a ScheduledFuture representing pending completion of the task
org.springframework.scheduling.TaskScheduler.scheduleWithFixedDelay
(Runnable
the Runnable to execute whenever the trigger fires
task
,
long
the delay between the completion of one execution and the start of the next (in milliseconds)
delay
)

as of 6.0, in favor of scheduleWithFixedDelay(Runnable, Duration)

6.0

Returns:

the next execution time as defined by the trigger, or null if the trigger won't fire anymore
org.springframework.scheduling.Trigger.nextExecutionTime
(TriggerContext
context object encapsulating last execution times and last completion time
triggerContext
)

as of 6.0, in favor of nextExecution(TriggerContext)

6.0
6.0
6.0
6.0
6.0
org.springframework.scheduling.annotation.AsyncResult.addCallback(ListenableFutureCallback<? super V>
the callback to register
callback
)

Deprecated as a consequence of ListenableFutureCallback being deprecated. See corresponding docs for further information.

org.springframework.scheduling.annotation.AsyncResult.addCallback(SuccessCallback<? super V>
the success callback
successCallback
,
FailureCallback
the failure callback
failureCallback
)

Deprecated as a consequence of SuccessCallback and FailureCallback being deprecated. See corresponding docs for further information.

org.springframework.scheduling.annotation.AsyncResult.forExecutionException(Throwable
the exception to expose (either an pre-built ExecutionException or a cause to be wrapped in an ExecutionException)
ex
)

Deprecated as a consequence of ListenableFuture being deprecated. See corresponding docs for further information.

org.springframework.scheduling.annotation.AsyncResult.forValue(V
the value to expose
value
)

Deprecated as a consequence of ListenableFuture being deprecated. See corresponding docs for further information.

6.1
6.1
org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.ManagedTaskExecutorAdapter

Deprecated as a consequence of TaskExecutorAdapter being deprecated. See corresponding docs for further information.

org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.ManagedTaskExecutorAdapter.submitListenable(Runnable
the Runnable to execute (never null)
task
)

Deprecated as a consequence of ListenableFuture being deprecated. See corresponding docs for further information.

org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.ManagedTaskExecutorAdapter.submitListenable(Callable<T>
the Callable to execute (never null)
task
)

Deprecated as a consequence of ListenableFuture being deprecated. See corresponding docs for further information.

org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.adaptedExecutor

Deprecated as a consequence of TaskExecutorAdapter being deprecated. See corresponding docs for further information.

org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.execute(Runnable
the Runnable to execute (never null)
task
,
long
the time duration (milliseconds) within which the task is supposed to start. This is intended as a hint to the executor, allowing for preferred handling of immediate tasks. Typical values are TIMEOUT_IMMEDIATE or TIMEOUT_INDEFINITE (the default as used by execute(Runnable)).
startTimeout
)

org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.getAdaptedExecutor(Executor concurrentExecutor)

Deprecated as a consequence of TaskExecutorAdapter being deprecated. See corresponding docs for further information.

org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.submitListenable(Runnable
the Runnable to execute (never null)
task
)

Deprecated as a consequence of ListenableFuture being deprecated. See corresponding docs for further information.

org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.submitListenable(Callable<T>
the Callable to execute (never null)
task
)

Deprecated as a consequence of ListenableFuture being deprecated. See corresponding docs for further information.

6.1
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.submitListenable(Runnable
the Runnable to execute (never null)
task
)

Deprecated as a consequence of ListenableFuture being deprecated. See corresponding docs for further information.

org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.submitListenable(Callable<T>
the Callable to execute (never null)
task
)

Deprecated as a consequence of ListenableFuture being deprecated. See corresponding docs for further information.

org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.executeAndTrack(ExecutorService executor, ListenableFutureTask<?> listenableFuture)

Deprecated as a consequence of ListenableFutureTask being deprecated. See corresponding docs for further information.

org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.submitListenable(Runnable
the Runnable to execute (never null)
task
)

Deprecated as a consequence of ListenableFuture being deprecated. See corresponding docs for further information.

org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.submitListenable(Callable<T>
the Callable to execute (never null)
task
)

Deprecated as a consequence of ListenableFuture being deprecated. See corresponding docs for further information.

6.0
org.springframework.scheduling.config.FixedDelayTask.FixedDelayTask(Runnable
the underlying task to execute
runnable
,
long
how often in milliseconds the task should be executed
interval
,
long
the initial delay before first execution of the task
initialDelay
)

as of 6.0, in favor on FixedDelayTask(Runnable, Duration, Duration)

6.0
org.springframework.scheduling.config.FixedRateTask.FixedRateTask(Runnable
the underlying task to execute
runnable
,
long
how often in milliseconds the task should be executed
interval
,
long
the initial delay before first execution of the task
initialDelay
)

as of 6.0, in favor on FixedRateTask(Runnable, Duration, Duration)

6.0
org.springframework.scheduling.config.IntervalTask.IntervalTask(Runnable
the underlying task to execute
runnable
,
long
how often in milliseconds the task should be executed
interval
,
long
the initial delay before first execution of the task
initialDelay
)

as of 6.0, in favor on IntervalTask(Runnable, Duration, Duration)

6.0
org.springframework.scheduling.config.IntervalTask.IntervalTask(Runnable
the underlying task to execute
runnable
,
long
how often in milliseconds the task should be executed
interval
)

as of 6.0, in favor on IntervalTask(Runnable, Duration)

6.0
6.0
6.0
6.0
org.springframework.scheduling.config.TaskExecutorFactoryBean.determinePoolSizeRange(ThreadPoolTaskExecutor executor)

Deprecated as a consequence of ThreadPoolTaskExecutor being deprecated. See corresponding docs for further information.

org.springframework.scheduling.config.TaskExecutorFactoryBean.target

Deprecated as a consequence of ThreadPoolTaskExecutor being deprecated. See corresponding docs for further information.

6.0
6.0
6.0
6.0
6.0
6.0
6.0
org.springframework.scheduling.support.SimpleTriggerContext.SimpleTriggerContext(Date
last scheduled execution time
lastScheduledExecutionTime
,
Date
last actual execution time
lastActualExecutionTime
,
Date
last completion time
lastCompletionTime
)

as of 6.0, in favor of SimpleTriggerContext(Instant, Instant, Instant)

6.0
org.springframework.scheduling.support.SimpleTriggerContext.update(Date
last scheduled execution time
lastScheduledExecutionTime
,
Date
last actual execution time
lastActualExecutionTime
,
Date
last completion time
lastCompletionTime
)

as of 6.0, in favor of update(Instant, Instant, Instant)

6.0
org.springframework.ui.context.HierarchicalThemeSource

as of 6.0 in favor of using CSS, without direct replacement

org.springframework.ui.context.HierarchicalThemeSource.getParentThemeSource()

Deprecated as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

org.springframework.ui.context.HierarchicalThemeSource.setParentThemeSource(ThemeSource
the parent ThemeSource that will be used to resolve messages that this object can't resolve. May be null, in which case no further resolution is possible.
parent
)

Deprecated as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

6.0
org.springframework.ui.context.Theme

as of 6.0 in favor of using CSS, without direct replacement

6.0
org.springframework.ui.context.ThemeSource

as of 6.0 in favor of using CSS, without direct replacement

Returns:

the corresponding Theme, or null if none defined. Note that, by convention, a ThemeSource should at least be able to return a default Theme for the default theme name "theme" but may also return default Themes for other theme names.
org.springframework.ui.context.ThemeSource.getTheme
(String
the name of the theme
themeName
)

Deprecated as a consequence of Theme being deprecated. See corresponding docs for further information.

6.0
org.springframework.ui.context.support.DelegatingThemeSource

as of 6.0 in favor of using CSS, without direct replacement

org.springframework.ui.context.support.DelegatingThemeSource.getParentThemeSource()

Deprecated as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

org.springframework.ui.context.support.DelegatingThemeSource.getTheme(String
the name of the theme
themeName
)

Deprecated as a consequence of Theme being deprecated. See corresponding docs for further information.

org.springframework.ui.context.support.DelegatingThemeSource.parentThemeSource

Deprecated as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

org.springframework.ui.context.support.DelegatingThemeSource.setParentThemeSource(ThemeSource
the parent ThemeSource that will be used to resolve messages that this object can't resolve. May be null, in which case no further resolution is possible.
parentThemeSource
)

Deprecated as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

6.0
org.springframework.ui.context.support.ResourceBundleThemeSource

as of 6.0 in favor of using CSS, without direct replacement

org.springframework.ui.context.support.ResourceBundleThemeSource.getParentThemeSource()

Deprecated as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

org.springframework.ui.context.support.ResourceBundleThemeSource.getTheme(String
the name of the theme
themeName
)

Deprecated as a consequence of Theme being deprecated. See corresponding docs for further information.

org.springframework.ui.context.support.ResourceBundleThemeSource.initParent(Theme
the Theme to (re-)initialize
theme
)

Deprecated as a consequence of Theme being deprecated. See corresponding docs for further information.

org.springframework.ui.context.support.ResourceBundleThemeSource.parentThemeSource

Deprecated as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

org.springframework.ui.context.support.ResourceBundleThemeSource.setParentThemeSource(ThemeSource
the parent ThemeSource that will be used to resolve messages that this object can't resolve. May be null, in which case no further resolution is possible.
parent
)

Deprecated as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

6.0
org.springframework.ui.context.support.SimpleTheme

as of 6.0 in favor of using CSS, without direct replacement

6.0
org.springframework.ui.context.support.UiApplicationContextUtils

as of 6.0 in favor of using CSS, without direct replacement

Returns:

the initialized theme source (will never be null)
org.springframework.ui.context.support.UiApplicationContextUtils.initThemeSource
(ApplicationContext
current application context
context
)

Deprecated as a consequence of ThemeSource being deprecated. See corresponding docs for further information.