Is there any way in Grails 3 to have some controller classes inside a .jar file and dynamically loading it in the main grails application?
What i am trying to achieve is to be able to load and unload dynamically .jar files for different clients of my application (eg. customization is business logic etc.)
Thank you all in advance.
Is there any way in Grails 3 to have some controller classes inside a .jar file and dynamically loading it in the main grails application?
Yes.
Grails 3 plugins are distributed as normal .jar files. If you write a plugin that contains any number of controllers then consume that plugin from an application, all of the controllers in the plugin will be dynamically loaded into the grails application from the plugin jar.