Grails

Make plugins register their arefact handlers as part of bootstrapping lifecycle

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 0.5-RC1
  • Component/s: None
  • Labels:
    None
  1. src_commons_new.patch
    01/Mar/07 4:46 AM
    10 kB
    Chanwit Kaewkasi
  2. test_commons.patch
    01/Mar/07 4:47 AM
    0.6 kB
    Chanwit Kaewkasi

Issue Links

Activity

Hide
Marc Palmer added a comment -

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?

Show
Marc Palmer added a comment - 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?
Hide
Chanwit Kaewkasi added a comment -

Here's my working patch.

Show
Chanwit Kaewkasi added a comment - Here's my working patch.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: