[josm-dev] questions about plugin loading

Bodo Meissner bodo at bodo-m.de
Sun Aug 15 18:35:30 BST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all,

I started implementing remote control for WMS.
The remotecontrol plugin will provide an interface to register new handlers for additional commands and the WMS plugin will use this interface.
That means when the WMS plugin wants to make calls to the remotecontrol plugin, Josm must already have loaded this plugin.

If there is a guarantee that wmsplugin will always be loaded after remotecontrol, wmsplugin can register its remote control handler in its initialization. Otherwise wmsplugin must know when both wmsplugin and remotecontrol are loaded or when all plugins are loaded.

Is there a way to specify a dependency or a loading order? ("wmsplugin requires remotecontrol" or "if remotecontrol is enabled it must be loaded before wmsplugin")
Does JOSM call a function of a plugin when all enabled plugins are loaded?


Bodo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkxoJWIACgkQnMz9fgzDSqdQMQCfaX6u4vOLobDklR4NfSoyBHcZ
ulgAnAxpDHdBXxBUtm8Jvh3igPxqlmhe
=1uBq
-----END PGP SIGNATURE-----



More information about the josm-dev mailing list