public class StoreContextUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TASK_EXECUTOR_BEAN_NAME
Default task executor bean name
|
static java.lang.String |
TASK_SCHEDULER_BEAN_NAME
Default task scheduler bean name
|
Constructor and Description |
---|
StoreContextUtils() |
Modifier and Type | Method and Description |
---|---|
static StoreEventPublisher |
getEventPublisher(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
StoreEventPublisher bean whose name is "storeEventPublisher" if available. |
static org.springframework.core.task.TaskExecutor |
getTaskExecutor(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
TaskScheduler bean whose name is "taskExecutor" if available. |
static org.springframework.scheduling.TaskScheduler |
getTaskScheduler(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
TaskScheduler bean whose name is "taskScheduler" if available. |
public static final java.lang.String TASK_SCHEDULER_BEAN_NAME
public static final java.lang.String TASK_EXECUTOR_BEAN_NAME
public static org.springframework.scheduling.TaskScheduler getTaskScheduler(org.springframework.beans.factory.BeanFactory beanFactory)
TaskScheduler
bean whose name is "taskScheduler" if available.beanFactory
- BeanFactory for lookup, must not be null.public static org.springframework.core.task.TaskExecutor getTaskExecutor(org.springframework.beans.factory.BeanFactory beanFactory)
TaskScheduler
bean whose name is "taskExecutor" if available.beanFactory
- BeanFactory for lookup, must not be null.public static StoreEventPublisher getEventPublisher(org.springframework.beans.factory.BeanFactory beanFactory)
StoreEventPublisher
bean whose name is "storeEventPublisher" if available.beanFactory
- BeanFactory for lookup, must not be null.