[osmosis-dev] Plugins
marcus.wolschon at googlemail.com
marcus.wolschon at googlemail.com
Wed Jan 28 13:19:28 GMT 2009
I think I can simplify it even more
by removing the need for a PluginLoader.
(Simply have name="name" and class="here.MyTaskManagerFactory")
I can also set up an example-plugin as a simple project
with an ant build.xml within the next days. I simply have
to find the time to document it some more.
The plugin-mechanism in JOSM is simple but maybe a bit
too simple in the long run.
I leads to things like Surveyor crashing every 5 minutes due to
ConcurrentModificationExceptions in the gpx-layer painting
code, plugins from incompatible versions belong loaded
with no warning and then crashing, ...
(The former only happens after driving for a few hours
collecting lots of gpx-points.)
JPF is not complicated at all. I just did not find the
time yet to document it better and it is a stable and
working plugin-mechanism that none of us needs to debug
for month until it works.
If you can write a better one, feel free to do so. I'm
not attached to it in any way. It's just that this was
simple to write and is here and the old one was unusable
(requiring end-users to specify the classpath including
all library-jars)
http://wiki.openstreetmap.org/wiki/Osmosis/WritingPlugins
Marcus
More information about the osmosis-dev
mailing list