Class AbstractXmppConnectionAwareEndpoint
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.xmpp.core.AbstractXmppConnectionAwareEndpoint
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanNameAware
,DisposableBean
,InitializingBean
,SmartInitializingSingleton
,ApplicationContextAware
,Lifecycle
,Phased
,SmartLifecycle
,ExpressionCapable
,MessageProducer
,IntegrationPattern
,NamedComponent
,ManageableLifecycle
,ManageableSmartLifecycle
,TrackableComponent
- Direct Known Subclasses:
ChatMessageListeningEndpoint
,PresenceListeningEndpoint
public abstract class AbstractXmppConnectionAwareEndpoint extends MessageProducerSupport
- Since:
- 2.0
- Author:
- Oleg Zhurakousky, Mark Fisher, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.endpoint.AbstractEndpoint
lifecycleCondition, lifecycleLock
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
-
Constructor Summary
Constructors Constructor Description AbstractXmppConnectionAwareEndpoint()
AbstractXmppConnectionAwareEndpoint(org.jivesoftware.smack.XMPPConnection xmppConnection)
-
Method Summary
Modifier and Type Method Description protected org.jivesoftware.smack.XMPPConnection
getXmppConnection()
protected boolean
isInitialized()
Return the status of this component if it has been initialized already.protected void
onInit()
Subclasses may implement this for initialization logic.Methods inherited from class org.springframework.integration.endpoint.MessageProducerSupport
afterSingletonsInstantiated, buildErrorMessage, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisher
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.integration.support.context.NamedComponent
getBeanName, getComponentName, getComponentType
-
Constructor Details
-
AbstractXmppConnectionAwareEndpoint
public AbstractXmppConnectionAwareEndpoint() -
AbstractXmppConnectionAwareEndpoint
public AbstractXmppConnectionAwareEndpoint(org.jivesoftware.smack.XMPPConnection xmppConnection)
-
-
Method Details
-
getXmppConnection
protected org.jivesoftware.smack.XMPPConnection getXmppConnection() -
isInitialized
protected boolean isInitialized()Description copied from class:IntegrationObjectSupport
Return the status of this component if it has been initialized already.- Overrides:
isInitialized
in classIntegrationObjectSupport
- Returns:
- the flag if this component has been initialized already.
-
onInit
protected void onInit()Description copied from class:IntegrationObjectSupport
Subclasses may implement this for initialization logic.- Overrides:
onInit
in classMessageProducerSupport
-