zhongxan / emite

Automatically exported from code.google.com/p/emite
0 stars 0 forks source link

Remove listener from the session #338

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Adding listener to a SessionImpl
The emite class "Session" api provide methods to add listener. But methods to 
remove a listener seems to be not available. Some of the scenario: Emite 
provides "Room" class to handle a MultiUserChat. This "Room" class handle the 
presence feature directly from the "Session". "RoomManager" handles the "Room" 
bussiness. Even though the "RoomManager" provides method to remove "Room" but 
this "Room" has directly contact with the "Session". 

What is the expected output? What do you see instead?
Room should be removed from the session listener. Even though we remove "Room" 
from the "RoomManager" the listener inside the "Room" is still functioning. 

What version of the product are you using? On what operating system?
emite 0.5, Linux-Fedora

Please provide any additional information below.

Original issue reported on code.google.com by jiunara...@gmail.com on 28 Dec 2010 at 7:15

GoogleCodeExporter commented 8 years ago
I think this is solved in recent versions of emite. Use the XmppSession 
instead. I don't think we are going to solve it in older versions (0.5.0).

Original comment by danigb on 28 Dec 2010 at 12:46

GoogleCodeExporter commented 8 years ago
Before looking into the XmppSession in the recent version, this recent version 
deprecates most of the class in emite0.5.0 version. Shall I continue with the 
deprecated class and just use the XmppSession. 

Original comment by jiunara...@gmail.com on 28 Dec 2010 at 1:12