Grails solution for OSGI-like live modularity?

纵饮孤独 提交于 2019-12-10 12:07:35

问题



I'm working on a grails based multipurpose billing system which offers different kinds of payment gateways, server modules and notifications modules to it's users. Currently all modules are implemented as grails services bundled with the app, but I'd like to let people create their own modules, but without having to share my source code with them. So basically I need some grails application aware (I want to be able to work with grails domains and other grails specific objects in an injected code) and dynamic code injection solution, but there is none for grails. I was going to begin with OSGI as it seems to solve most of my problems (except integration with grails), but I found a quote by Graeme Rocher: "OSGi as a technology is going nowhere and introduces huge amounts of complexity, something which we do not need".

So if OSGi is too complex and not something I'd probably need then is there an easier answer to my problem? I don't want to reinvent the wheel, especially in this case.

来源:https://stackoverflow.com/questions/23880545/grails-solution-for-osgi-like-live-modularity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!