Spring for Apache Hadoop

org.springframework.data.hadoop.store.support
Class StoreContextUtils

java.lang.Object
  extended by org.springframework.data.hadoop.store.support.StoreContextUtils

public class StoreContextUtils
extends java.lang.Object

Utility methods for accessing common components from the BeanFactory.

Author:
Janne Valkealahti

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

TASK_SCHEDULER_BEAN_NAME

public static final java.lang.String TASK_SCHEDULER_BEAN_NAME
Default task scheduler bean name

See Also:
Constant Field Values

TASK_EXECUTOR_BEAN_NAME

public static final java.lang.String TASK_EXECUTOR_BEAN_NAME
Default task executor bean name

See Also:
Constant Field Values
Constructor Detail

StoreContextUtils

public StoreContextUtils()
Method Detail

getTaskScheduler

public static org.springframework.scheduling.TaskScheduler getTaskScheduler(org.springframework.beans.factory.BeanFactory beanFactory)
Return the TaskScheduler bean whose name is "taskScheduler" if available.

Parameters:
beanFactory - BeanFactory for lookup, must not be null.

getTaskExecutor

public static org.springframework.core.task.TaskExecutor getTaskExecutor(org.springframework.beans.factory.BeanFactory beanFactory)
Return the TaskScheduler bean whose name is "taskExecutor" if available.

Parameters:
beanFactory - BeanFactory for lookup, must not be null.

getEventPublisher

public static StoreEventPublisher getEventPublisher(org.springframework.beans.factory.BeanFactory beanFactory)
Return the StoreEventPublisher bean whose name is "storeEventPublisher" if available.

Parameters:
beanFactory - BeanFactory for lookup, must not be null.

Spring for Apache Hadoop