Grails mixins not working when using JVM forking -
After upgrading to Grails 2.3.5, I found that my mixer only works when JVM forking stops.
All my administrators have a code
import usage. Maymicsin @ Micsin (Maymicsin) class MyController {
where MyMixin
src / groovy / util is defined
and looks something like
Package usage class MyMixin {Private def aMethod (someArgs) {// do something}}
When BuildConfig.groovy
the following code in the
forkConfig = [Adiktmmomiri: 1024 minimum memory: 64, debug: wrong, Adiktmprrm: 256] grails.project.fork = [test: forkConfig, // test Configure settings to run -app JVM: forkConfig, // run-app JVM Configure settings for Uddh: forkConfig, // Run war configure settings for the JVM console: forkConfig // swing console JVM]
Then I get the following error
< Pre-> Missing error when processing request: method has no signature: MyController.aMethod () applies for logic type
where the logic types match and the course The code works when I have a JVM forking in BuildConfig.groovy
E does not.
Do I have to do something special to get mixers to work while doing JVM fork? I'm just using Forking because Grails 2.3.5 recommends it and I had problems when I did not use it:
I have access Micsins with grates domain objects was hard and rough way of some sort with you have controllers that are not surprised to hear this domain controller, and services too Management by greeles It is no wonder that the normal @mixin can break any way I have been successful in injection of special methods through the MetaCLASS Builder DSL:
targetClass .metaClass {someMethod {someParam - & gt; // do something}}
You have to call it all the target squares ... it's not as fantastic as @mixin, but it seems.
Comments
Post a Comment