mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 09:39:39 +02:00
Make XMPPConnection an interface
create AbstractXMPPConnection.
This commit is contained in:
parent
6dd180e9d3
commit
beecb8a675
33 changed files with 1264 additions and 1090 deletions
|
@ -49,7 +49,7 @@ import org.jivesoftware.smack.packet.Packet;
|
|||
* @see XMPPConnection
|
||||
* @author Guenther Niess
|
||||
*/
|
||||
public class DummyConnection extends XMPPConnection {
|
||||
public class DummyConnection extends AbstractXMPPConnection {
|
||||
|
||||
private boolean authenticated = false;
|
||||
private boolean anonymous = false;
|
||||
|
@ -68,9 +68,9 @@ public class DummyConnection extends XMPPConnection {
|
|||
public DummyConnection(ConnectionConfiguration configuration) {
|
||||
super(configuration);
|
||||
|
||||
for (ConnectionCreationListener listener : getConnectionCreationListeners()) {
|
||||
listener.connectionCreated(this);
|
||||
}
|
||||
for (ConnectionCreationListener listener : XMPPConnectionRegistry.getConnectionCreationListeners()) {
|
||||
listener.connectionCreated(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue