Hi, during exploring the OpenFire’s code, I found another problem. I want to use my own AuthProvider - it’s easy to set this provider in settings (xml or directly in db using of web interface). There are several build-in providers (like JDBCAuthProvider), but I need something more custom, so I decided to write my own provider. I hope it’s nothing strange to use my own class.
But. I can’t deploy the code as a plugin, because all plugins are loaded AFTER the server bootstrap, (after XMPPServer::loadModules()), so at the bootstrap time, the library could not be found…
I understand, that it’s a bit more complicated as plugins may register listeners on some core modules, so we need these modules to be initialized already… So, the sollution could be: add another phase… Something like:
1/ loadPlugins (only create the plugin classes, load libs, etc.)
2/ load/init all core modules (RosterManager etc)
3/ initPlugins (register plugin’s listeners to modules etc.)
What do you think about this ?