All,
Is there anyway for a Plugin to add features that will be returned the ServiceDiscoveryManager when a DiscoveryInfo packet is received? I tried adding a static block to my plugin that adds an XMPPConnectionListener that adds my feature:
static {
XMPPConnection.addConnectionCreationListener(new ConnectionCreationListener() {
public void connectionCreated(XMPPConnection connection) {
ServiceDiscoveryManager.getInstanceFor(connection).addFeature(MY_SERVICE_NS);
}
});
}
But it seems like plugins are created (class loaded) pretty late in the startup process, and the XMPPConnection has already been created.
thx!
-Tim Julien