Right now I’m working on a plug in for Spark. It works out so far but now I want to add some information to the presence packets of all clients which us the plug in to identify them. To do this I implemented PacketExtension and PacketExtensionProvider. This also works out when I do the following:
Presence presence= new Presence( Presence.Type.available );
presence.addExtension( new presenceExtention() );
It’s ok but it would be nice to have the extension added to every presence which is send by my client automatically. I was looking for a Manager or something like that where I can register my extension by I didn’t find any.
Does anybody have an idea how to do this or if this is even possible?