Smack/smack-extensions/src/main/java/org/jivesoftware/smackx
Florian Schmaus 717090d272 Rework incoming packet listeners and Roster
Differentiate between asynchronous and synchronous ones. Asynchronous
are the ones where the invocation order may not be the same as the order
in which the stanzas arrived.

Since it's no longer guaranteed that when a unit test calls

processPacket(stanza)

the stanza will be completely processed when the call returns, it was
necessary to extend the unit tests (mostly Roster and ChatManager) with
a packet listener that waits for his invocation. Since we now also use
LinkedHashMaps as Map for the packet listeners (SMACK-531, SMACK-424),
adding a packet listeners as last also means that it will be called as
last. We exploit this behavior change now in the unit tests.

Rename 'recvListeners' to 'syncRecvListeners' in AbstractXMPPConnection.

Rename 'rosterInitialized' to 'loaded' in Roster.

Add Roster.isLoaded().

Reset 'loaded' to false in
Roster.setOfflinePresencesAndResetLoaded() (was setOfflinePresences()).

Fixes SMACK-583, SMACK-532, SMACK-424
2015-01-07 14:35:23 +01:00
..
address Don't use extending stanza addressing if not strictly necessary 2014-11-10 17:37:27 +01:00
amp Return more specific types (e.g. Collection → List) 2014-11-29 13:41:49 +01:00
attention/packet Rework Smack Provider design 2014-10-08 16:01:14 +02:00
bookmarks Return more specific types (e.g. Collection → List) 2014-11-29 13:41:49 +01:00
bytestreams Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
caps Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
chatstates Replace PacketInterceptor with PacketListener 2014-10-12 19:19:44 +02:00
commands Use async packet listener in AdHocCommandManager 2015-01-07 14:35:22 +01:00
delay Rework Smack Provider design 2014-10-08 16:01:14 +02:00
disco Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
filetransfer Add XMPPConnection.addAsyncPacketListener(PacketListener, PacketFilter) 2014-12-30 20:45:17 +01:00
forward Rework Smack Provider design 2014-10-08 16:01:14 +02:00
iqlast Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
iqprivate Enable PacketExtensions for IQs 2014-11-10 11:43:18 +01:00
iqregister Return more specific types (e.g. Collection → List) 2014-11-29 13:41:49 +01:00
iqversion Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
jiveproperties Rework Smack Provider design 2014-10-08 16:01:14 +02:00
muc Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
nick/packet Rework Smack Provider design 2014-10-08 16:01:14 +02:00
offline Improve OfflineMessages.getMessages() 2014-12-07 23:43:26 +01:00
pep Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
ping Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
privacy Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
pubsub Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
receipts Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
rsm Rework Smack Provider design 2014-10-08 16:01:14 +02:00
search Make FormField.Type an enum 2014-12-27 21:12:48 +01:00
sharedgroups Enable PacketExtensions for IQs 2014-11-10 11:43:18 +01:00
shim Improve SHIM API 2015-01-02 00:09:30 +01:00
si Enable PacketExtensions for IQs 2014-11-10 11:43:18 +01:00
time Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
vcardtemp VCardProvider should use a safe parser 2014-12-16 23:13:24 +01:00
xdata Support for XEP-0122: Data Forms Validation. 2014-12-30 02:03:12 +01:00
xdatalayout Add XData(Layout)Manager 2014-11-21 09:59:24 +01:00
xdatavalidation Remove ValidateElement.EmptyValidateElement 2015-01-07 14:35:22 +01:00
xhtmlim Rework Smack Provider design 2014-10-08 16:01:14 +02:00