org.springframework.integration.xmpp.config
Class XmppConnectionFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
org.springframework.integration.xmpp.config.XmppConnectionFactoryBean
- All Implemented Interfaces:
- BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<org.jivesoftware.smack.XMPPConnection>, InitializingBean, Lifecycle, Phased, SmartLifecycle
public class XmppConnectionFactoryBean
- extends AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
- implements SmartLifecycle
This class configures an XMPPConnection
object.
This object is used for all scenarios to talk to a Smack server.
- Since:
- 2.0
- See Also:
XMPPConnection
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmppConnectionFactoryBean
public XmppConnectionFactoryBean(org.jivesoftware.smack.ConnectionConfiguration connectionConfiguration)
setAutoStartup
public void setAutoStartup(boolean autoStartup)
setSubscriptionMode
public void setSubscriptionMode(java.lang.String subscriptionMode)
setUser
public void setUser(java.lang.String user)
setPassword
public void setPassword(java.lang.String password)
setResource
public void setResource(java.lang.String resource)
getObjectType
public java.lang.Class<? extends org.jivesoftware.smack.XMPPConnection> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<org.jivesoftware.smack.XMPPConnection>
- Specified by:
getObjectType
in class AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
createInstance
protected org.jivesoftware.smack.XMPPConnection createInstance()
throws java.lang.Exception
- Specified by:
createInstance
in class AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
- Throws:
java.lang.Exception
start
public void start()
- Specified by:
start
in interface Lifecycle
stop
public void stop()
- Specified by:
stop
in interface Lifecycle
stop
public void stop(java.lang.Runnable callback)
- Specified by:
stop
in interface SmartLifecycle
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface Lifecycle
getPhase
public int getPhase()
- Specified by:
getPhase
in interface Phased
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartup
in interface SmartLifecycle