mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2024-06-26 05:24:50 +02:00
22 lines
715 B
Java
22 lines
715 B
Java
|
package org.mercury_im.xmpp.connection;
|
||
|
|
||
|
import org.mercury_im.core.ConnectionFactory;
|
||
|
import org.mercury_im.core.Messenger;
|
||
|
import org.mercury_im.messenger.xmpp.entity.XmppAccount;
|
||
|
import org.mercury_im.messenger.xmpp.entity.XmppAddress;
|
||
|
import org.mercury_im.messenger.xmpp.entity.XmppAuthMethod;
|
||
|
|
||
|
public class XmppConnectionFactory implements ConnectionFactory<XmppConnectionMethod, XmppAccount, XmppAddress.XmppUserAddress, XmppAuthMethod> {
|
||
|
|
||
|
protected Messenger messenger;
|
||
|
|
||
|
public Messenger getMessenger() {
|
||
|
return messenger;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public XmppConnectionMethod provideConnection(XmppAccount account) {
|
||
|
return new XmppConnectionMethod(account, getMessenger());
|
||
|
}
|
||
|
}
|