Influence order of ArtefactHandlers

E

empinator

Guest
Hi,

I am currently writing a plugin with my own ArtefactHandler which is trying to "extend" the controller functionality.
Therefore I choose a naming convention which also uses the controller Suffix "XyzController" (e.g. "MyXyzController")
This also brings the benefit that testing works out of the box since it still has "Controller" at the end.

However, my current problem is, that I cannot influence the order in the list of artefactHandlers within DefaultGrailsApplication.java which means
that the regular ControllerArtefactHandler might consumes MyXyzController before it's my custom ArtefactHandler's turn.

Do you have any idea how I can either force my custom artefactHandler to the top of the list or prevent the original ControllerArtefactHandler from consuming my XyzControllers?

Thanks
-Markus
 
Top