Project

General

Profile

List of loaded plugins.

Added by Dymytrii Hurin 9 days ago

Hi there, I'm trying to find which plugins are loaded by server. Currently, I find this list in SessionManager

private Set<XMPPImplIfc> allPlugins = new ConcurrentSkipListSet<XMPPImplIfc>();

But I can't find way to check is the plugin enabled at the init.properties file outside from SessionManager.
Also, I find ProcessorFactory
public static boolean hasImplementation(String id)

And, SessionManagerConfig
getProcessor(String plug_id)

But it use ProcessorFactory methods and just find, is the plugin impliments XMPPImplIfc.
My use case is, send an error to client if administrator forgets to enable plugin.


Replies (1)

RE: List of loaded plugins. - Added by Wojciech Kapcia 7 days ago

Dymytrii Hurin wrote:

Hi there, I'm trying to find which plugins are loaded by server. Currently, I find this list in SessionManager

Currently this is not possible through API, neither in 7.1.x nor upcoming 7.2.0. You could probably use Reflection to that end.

My use case is, send an error to client if administrator forgets to enable plugin.

I would recommend checking that the installation is correctly configured before making it available to the end-users.

    (1-1/1)