[josm-dev] WMS and remote-control

Stephan Knauss osm at stephans-server.de
Sat Aug 21 18:23:56 BST 2010


Sebastian Klein wrote:
> So either the common protocol must be included in Josm core or
> another possible solution would be to use reflection.

How about adding the basic functionality into core? Providing the 
listener and accepting commands.

By default it will have no commands included.

It provides a capabilities command that reports back the supported 
commands and their protocol version.

Plugins can register new commands with the core similar than they would 
register other functionality (like shortcuts and such).

So the core will know what commands are available and which plugin 
handles them.
It can also reject registrations of commands that already exist. It can 
provide a single configuration dialog where the plugins can append their 
plugin-specific settings.

Comments?

Stephan



More information about the josm-dev mailing list