org.springframework.integration.twitter
Class AbstractOutboundTwitterEndpointSupport
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.twitter.AbstractOutboundTwitterEndpointSupport
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent, MessageHandler
- Direct Known Subclasses:
- OutboundDMStatusMessageHandler, OutboundUpdatedStatusMessageHandler
public abstract class AbstractOutboundTwitterEndpointSupport
- extends AbstractEndpoint
- implements MessageHandler
The adapters that support 'sending' / 'updating status' messages will do so on top of this implementation for convenience, only.
- Author:
- Josh Long
Method Summary |
protected void |
doStart()
Subclasses must implement this method with the start behavior. |
protected void |
doStop()
Subclasses must implement this method with the stop behavior. |
protected void |
onInit()
Subclasses may implement this for initialization logic. |
void |
setConfiguration(OAuthConfiguration configuration)
|
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
configuration
protected volatile OAuthConfiguration configuration
twitter
protected volatile twitter4j.Twitter twitter
statusUpdateSupport
protected volatile StatusUpdateSupport statusUpdateSupport
AbstractOutboundTwitterEndpointSupport
public AbstractOutboundTwitterEndpointSupport()
setConfiguration
public void setConfiguration(OAuthConfiguration configuration)
onInit
protected void onInit()
throws Exception
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this for initialization logic.
- Overrides:
onInit
in class IntegrationObjectSupport
- Throws:
Exception
doStart
protected void doStart()
- Description copied from class:
AbstractEndpoint
- Subclasses must implement this method with the start behavior.
This method will be invoked while holding the
AbstractEndpoint.lifecycleLock
.
- Specified by:
doStart
in class AbstractEndpoint
doStop
protected void doStop()
- Description copied from class:
AbstractEndpoint
- Subclasses must implement this method with the stop behavior.
This method will be invoked while holding the
AbstractEndpoint.lifecycleLock
.
- Specified by:
doStop
in class AbstractEndpoint
Copyright © 2010. All Rights Reserved.