Requires changes to application and pluginManager wiring and reading of convention properties from plugin classes:
class MyPlugin {
def artefacts = [artefactHandlerInstance1, ArtefactHandlerClass2]
}
Auto-sense instances vs. classes in same list, then call registerArtefact manually
We still need a two-phase Application init however, to give other code a chance to register artefacts, surely? Otherwise we might as well remove registerArtefact from the GrailsApplication interface. Can we do this with a spring event?
Requires changes to application and pluginManager wiring and reading of convention properties from plugin classes:
class MyPlugin { def artefacts = [artefactHandlerInstance1, ArtefactHandlerClass2] }Auto-sense instances vs. classes in same list, then call registerArtefact manually
We still need a two-phase Application init however, to give other code a chance to register artefacts, surely? Otherwise we might as well remove registerArtefact from the GrailsApplication interface. Can we do this with a spring event?