org.springframework.integration.context
Class IntegrationContextUtils

java.lang.Object
  extended by org.springframework.integration.context.IntegrationContextUtils

public abstract class IntegrationContextUtils
extends java.lang.Object

Utility methods for accessing common integration components from the BeanFactory.


Field Summary
static java.lang.String DEFAULT_POLLER_METADATA_BEAN_NAME
           
static java.lang.String ERROR_CHANNEL_BEAN_NAME
           
static java.lang.String INTEGRATION_CONVERSION_SERVICE_BEAN_NAME
           
static java.lang.String METADATA_STORE_BEAN_NAME
           
static java.lang.String NULL_CHANNEL_BEAN_NAME
           
static java.lang.String TASK_SCHEDULER_BEAN_NAME
           
 
Constructor Summary
IntegrationContextUtils()
           
 
Method Summary
static ConversionService getConversionService(BeanFactory beanFactory)
          Return the ConversionService bean whose name is "integrationConversionService" if available.
static PollerMetadata getDefaultPollerMetadata(BeanFactory beanFactory)
          Return the default PollerMetadata bean if available.
static MessageChannel getErrorChannel(BeanFactory beanFactory)
          Return the MessageChannel bean whose name is "errorChannel".
static MetadataStore getMetadataStore(BeanFactory beanFactory)
          Return the MetadataStore bean whose name is "metadataStore".
static TaskScheduler getRequiredTaskScheduler(BeanFactory beanFactory)
          Return the TaskScheduler bean whose name is "taskScheduler".
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

TASK_SCHEDULER_BEAN_NAME

public static final java.lang.String TASK_SCHEDULER_BEAN_NAME
See Also:
Constant Field Values

ERROR_CHANNEL_BEAN_NAME

public static final java.lang.String ERROR_CHANNEL_BEAN_NAME
See Also:
Constant Field Values

NULL_CHANNEL_BEAN_NAME

public static final java.lang.String NULL_CHANNEL_BEAN_NAME
See Also:
Constant Field Values

METADATA_STORE_BEAN_NAME

public static final java.lang.String METADATA_STORE_BEAN_NAME
See Also:
Constant Field Values

INTEGRATION_CONVERSION_SERVICE_BEAN_NAME

public static final java.lang.String INTEGRATION_CONVERSION_SERVICE_BEAN_NAME
See Also:
Constant Field Values

DEFAULT_POLLER_METADATA_BEAN_NAME

public static final java.lang.String DEFAULT_POLLER_METADATA_BEAN_NAME
See Also:
Constant Field Values
Constructor Detail

IntegrationContextUtils

public IntegrationContextUtils()
Method Detail

getMetadataStore

public static MetadataStore getMetadataStore(BeanFactory beanFactory)
Return the MetadataStore bean whose name is "metadataStore".

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

getErrorChannel

public static MessageChannel getErrorChannel(BeanFactory beanFactory)
Return the MessageChannel bean whose name is "errorChannel".

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

getTaskScheduler

public static TaskScheduler getTaskScheduler(BeanFactory beanFactory)
Return the TaskScheduler bean whose name is "taskScheduler" if available.

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

getRequiredTaskScheduler

public static TaskScheduler getRequiredTaskScheduler(BeanFactory beanFactory)
Return the TaskScheduler bean whose name is "taskScheduler".

Parameters:
beanFactory - BeanFactory for lookup, must not be null.
Throws:
java.lang.IllegalStateException - if no such bean is available

getDefaultPollerMetadata

public static PollerMetadata getDefaultPollerMetadata(BeanFactory beanFactory)
Return the default PollerMetadata bean if available.

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

getConversionService

public static ConversionService getConversionService(BeanFactory beanFactory)
Return the ConversionService bean whose name is "integrationConversionService" if available.

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