public class XmppConnectionFactoryBean extends AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection> implements SmartLifecycle
XMPPConnection
object.
This object is used for all scenarios to talk to a Smack server.XMPPConnection
logger
Constructor and Description |
---|
XmppConnectionFactoryBean(org.jivesoftware.smack.ConnectionConfiguration connectionConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected org.jivesoftware.smack.XMPPConnection |
createInstance() |
Class<? extends org.jivesoftware.smack.XMPPConnection> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setAutoStartup(boolean autoStartup) |
void |
setPassword(String password) |
void |
setResource(String resource) |
void |
setSubscriptionMode(String subscriptionMode) |
void |
setUser(String user) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public XmppConnectionFactoryBean(org.jivesoftware.smack.ConnectionConfiguration connectionConfiguration)
public void setAutoStartup(boolean autoStartup)
public void setSubscriptionMode(String subscriptionMode)
public void setUser(String user)
public void setPassword(String password)
public void setResource(String resource)
public Class<? extends org.jivesoftware.smack.XMPPConnection> getObjectType()
getObjectType
in interface FactoryBean<org.jivesoftware.smack.XMPPConnection>
getObjectType
in class AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
protected org.jivesoftware.smack.XMPPConnection createInstance() throws Exception
createInstance
in class AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
Exception
public void stop(Runnable callback)
stop
in interface SmartLifecycle
public boolean isAutoStartup()
isAutoStartup
in interface SmartLifecycle