|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.store.support.StoreContextUtils
public class StoreContextUtils
Utility methods for accessing common components from the BeanFactory.
| Field Summary | |
|---|---|
static String |
TASK_EXECUTOR_BEAN_NAME
Default task executor bean name |
static String |
TASK_SCHEDULER_BEAN_NAME
Default task scheduler bean name |
| Constructor Summary | |
|---|---|
StoreContextUtils()
|
|
| Method Summary | |
|---|---|
static StoreEventPublisher |
getEventPublisher(BeanFactory beanFactory)
Return the StoreEventPublisher bean whose name is "storeEventPublisher" if available. |
static TaskExecutor |
getTaskExecutor(BeanFactory beanFactory)
Return the TaskScheduler bean whose name is "taskExecutor" if available. |
static TaskScheduler |
getTaskScheduler(BeanFactory beanFactory)
Return the TaskScheduler bean whose name is "taskScheduler" if available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TASK_SCHEDULER_BEAN_NAME
public static final String TASK_EXECUTOR_BEAN_NAME
| Constructor Detail |
|---|
public StoreContextUtils()
| Method Detail |
|---|
public static TaskScheduler getTaskScheduler(BeanFactory beanFactory)
TaskScheduler bean whose name is "taskScheduler" if available.
beanFactory - BeanFactory for lookup, must not be null.public static TaskExecutor getTaskExecutor(BeanFactory beanFactory)
TaskScheduler bean whose name is "taskExecutor" if available.
beanFactory - BeanFactory for lookup, must not be null.public static StoreEventPublisher getEventPublisher(BeanFactory beanFactory)
StoreEventPublisher bean whose name is "storeEventPublisher" if available.
beanFactory - BeanFactory for lookup, must not be null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||