gentics / mesh-incubator

Project which is home for planned enhancements for Gentics Mesh
3 stars 0 forks source link

Refactor Classloader Handling #230

Open Jotschi opened 4 years ago

Jotschi commented 4 years ago

We could use a dedicated classloader to handle all mesh classes. This would remove all classes from the current root class loader and thus avoid problems with plugins.

Currently plugins use the "parent-last" classloader policy which will cause classes to be loaded from the parent if those can't be found in the plugin. We currently use maven provided scope to avoid duplicate classes in plugins. We could get rid of this workaround if we had no classes in the parent class-loader.

One idea would be to handle mesh core itself similar to a plugin.