HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
692 stars 131 forks source link

Support loading library from multiple classloaders #164

Closed mrjfalk closed 5 years ago

mrjfalk commented 5 years ago

In applications using a plugin concept where JavaFX is loaded on one classloader and then the plugin is loaded on child classloaders JavaFX will crash due to trying to add the same event name multiple times.

By adding a random UUID to the event name we can avoid these collisions. This solution is also used in e.g. ControlsFX (https://bitbucket.org/controlsfx/controlsfx/pull-requests/686/eventtype-names-use-uuid-suffix-to-prevent/diff)

mrjfalk commented 5 years ago

@HanSolo Thanks for merging this so quickly. When do you plan for the next release?

HanSolo commented 5 years ago

Will try to release a new version later today...

HanSolo commented 5 years ago

Sorry, took a bit longer but the release is out and is currently synced to Maven Central...