|
Spring Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.integration.context.IntegrationObjectSupport
public abstract class IntegrationObjectSupport
A base class that provides convenient access to the bean factory as
well as ChannelResolver and TaskScheduler instances.
This is intended to be used as a base class for internal framework components whereas code built upon the integration framework should not require tight coupling with the context but rather rely on standard dependency injection.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
Logger that is available to subclasses |
| Constructor Summary | |
|---|---|
IntegrationObjectSupport()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected BeanFactory |
getBeanFactory()
|
protected ChannelResolver |
getChannelResolver()
|
String |
getComponentName()
Will return the name of this component identified by componentName field. |
String |
getComponentType()
Subclasses may implement this method to provide component type information. |
protected ConversionService |
getConversionService()
|
protected TaskScheduler |
getTaskScheduler()
|
protected void |
onInit()
Subclasses may implement this for initialization logic. |
void |
setBeanFactory(BeanFactory beanFactory)
|
void |
setBeanName(String beanName)
|
protected void |
setChannelResolver(ChannelResolver channelResolver)
|
void |
setComponentName(String componentName)
Sets the name of this component. |
protected void |
setConversionService(ConversionService conversionService)
|
protected void |
setTaskScheduler(TaskScheduler taskScheduler)
|
String |
toString()
|
protected void |
writeMessageHistory(Message<?> message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public IntegrationObjectSupport()
| Method Detail |
|---|
public final void setBeanName(String beanName)
setBeanName in interface BeanNameAwarepublic final String getComponentName()
componentName field.
If componentName was not set this method will default to the 'beanName' of this component;
getComponentName in interface NamedComponentpublic void setComponentName(String componentName)
componentName - public String getComponentType()
getComponentType in interface NamedComponentpublic final void setBeanFactory(BeanFactory beanFactory)
setBeanFactory in interface BeanFactoryAwarepublic final void afterPropertiesSet()
afterPropertiesSet in interface InitializingBean
protected void onInit()
throws Exception
Exceptionprotected final BeanFactory getBeanFactory()
protected ChannelResolver getChannelResolver()
protected void setChannelResolver(ChannelResolver channelResolver)
protected TaskScheduler getTaskScheduler()
protected void setTaskScheduler(TaskScheduler taskScheduler)
protected final ConversionService getConversionService()
protected void setConversionService(ConversionService conversionService)
public String toString()
toString in class Objectprotected void writeMessageHistory(Message<?> message)
|
Spring Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||