|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.store.support.StoreContextUtils
public class StoreContextUtils
Utility methods for accessing common components from the BeanFactory.
Field Summary | |
---|---|
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 Summary | |
---|---|
StoreContextUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TASK_SCHEDULER_BEAN_NAME
public static final java.lang.String TASK_EXECUTOR_BEAN_NAME
Constructor Detail |
---|
public StoreContextUtils()
Method Detail |
---|
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.
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |