public class XmppConnectionFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
implements org.springframework.context.SmartLifecycle
XMPPConnection
object.
This object is used for all scenarios to talk to a Smack server.XMPPConnection
Constructor and Description |
---|
XmppConnectionFactoryBean(org.jivesoftware.smack.ConnectionConfiguration connectionConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected org.jivesoftware.smack.XMPPConnection |
createInstance() |
java.lang.Class<? extends org.jivesoftware.smack.XMPPConnection> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setAutoStartup(boolean autoStartup) |
void |
setPassword(java.lang.String password) |
void |
setResource(java.lang.String resource) |
void |
setSubscriptionMode(java.lang.String subscriptionMode) |
void |
setUser(java.lang.String user) |
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
public XmppConnectionFactoryBean(org.jivesoftware.smack.ConnectionConfiguration connectionConfiguration)
public void setAutoStartup(boolean autoStartup)
public void setSubscriptionMode(java.lang.String subscriptionMode)
public void setUser(java.lang.String user)
public void setPassword(java.lang.String password)
public void setResource(java.lang.String resource)
public java.lang.Class<? extends org.jivesoftware.smack.XMPPConnection> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.jivesoftware.smack.XMPPConnection>
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
protected org.jivesoftware.smack.XMPPConnection createInstance() throws java.lang.Exception
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
java.lang.Exception
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public void stop(java.lang.Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle