Smack/smack-extensions/src/main/java/org/jivesoftware/smackx/muc
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
..
packet Use new XmlStringBuilder.append(Collection<? extends Element>) in MUCUser 2015-01-02 00:14:04 +01:00
provider Add 'PacketParserUtils.addPacketextension()' 2014-10-08 16:01:19 +02:00
Affiliate.java Introduce MUCRole and MUCAffiliation enums 2014-08-24 18:30:18 +02:00
DefaultParticipantStatusListener.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
DefaultUserStatusListener.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
DiscussionHistory.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
HostedRoom.java Return more specific types (e.g. Collection → List) 2014-11-29 13:41:49 +01:00
InvitationListener.java Change muc.InvitationListner to use the MUC instance 2014-12-30 01:30:13 +01:00
InvitationRejectionListener.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
MUCAffiliation.java Introduce MUCRole and MUCAffiliation enums 2014-08-24 18:30:18 +02:00
MUCNotJoinedException.java Rework MultiUserChat 2014-10-13 11:10:30 +02:00
MUCRole.java Introduce MUCRole and MUCAffiliation enums 2014-08-24 18:30:18 +02:00
MultiUserChat.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
MultiUserChatManager.java Add XMPPConnection.addAsyncPacketListener(PacketListener, PacketFilter) 2014-12-30 20:45:17 +01:00
Occupant.java Introduce MUCRole and MUCAffiliation enums 2014-08-24 18:30:18 +02:00
ParticipantStatusListener.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
RoomInfo.java Extend RoomInfo to contain more meta-data 2014-08-25 11:39:57 +02:00
SubjectUpdatedListener.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
UserStatusListener.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
package.html Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00