Package org.springframework.vault.config
Class AbstractVaultConfiguration.TaskSchedulerWrapper
java.lang.Object
org.springframework.vault.config.AbstractVaultConfiguration.TaskSchedulerWrapper
- All Implemented Interfaces:
DisposableBean
,InitializingBean
- Enclosing class:
- AbstractVaultConfiguration
public static class AbstractVaultConfiguration.TaskSchedulerWrapper
extends Object
implements InitializingBean, DisposableBean
Wrapper to keep
ThreadPoolTaskScheduler
local to Spring Vault and to not
expose the bean globally.- Since:
- 2.3.1
-
Constructor Summary
ModifierConstructorDescriptionTaskSchedulerWrapper
(ThreadPoolTaskScheduler taskScheduler) protected
TaskSchedulerWrapper
(ThreadPoolTaskScheduler taskScheduler, boolean acceptAfterPropertiesSet, boolean acceptDestroy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
fromInstance
(ThreadPoolTaskScheduler scheduler) Factory method to adapt an existingThreadPoolTaskScheduler
bean without calling lifecycle methods.
-
Constructor Details
-
TaskSchedulerWrapper
-
TaskSchedulerWrapper
protected TaskSchedulerWrapper(ThreadPoolTaskScheduler taskScheduler, boolean acceptAfterPropertiesSet, boolean acceptDestroy)
-
-
Method Details
-
fromInstance
public static AbstractVaultConfiguration.TaskSchedulerWrapper fromInstance(ThreadPoolTaskScheduler scheduler) Factory method to adapt an existingThreadPoolTaskScheduler
bean without calling lifecycle methods.- Parameters:
scheduler
- the actualThreadPoolTaskScheduler
.- Returns:
- the wrapper for the given
ThreadPoolTaskScheduler
. - See Also:
-
destroy
public void destroy()- Specified by:
destroy
in interfaceDisposableBean
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-