Warn against usage of plugin-provided classes in Hazelcast
guusdk opened this issue · 1 comments
See igniterealtime/openfire-monitoring-plugin#155 This links eventually to guusdk/openfire-pushnotification-plugin@48b408c
Caching custom instances has ClassLoader problems when reloading plugins in a cluster.
Raise a warning every time we see (the first?) instance of a class loaded by a PluginClassLoader being added to a cache.
Ideally, if there's a reflection or something we can go at boot time, that'd be better.
If there's something we can add as a deprecation, or a plugin compile-time warning, better still.
(Separate tickets required to fix this in our plugins)
This issue was previously known as https://igniterealtime.atlassian.net/browse/OF-2238
igniterealtime/openfire-monitoring-plugin#156 (comment) suggests that a similar issue exists with executable tasks. Lets put in place a similar warning for those.