我在groovy元编程中有一些关于委托的noob问题.
用这行代码
grailsApplication.domainClasses.each { gdc ->
def domClass = gdc.clazz
domClass.metaClass.invokeMethod{name,args ->
//some line of code
def result = invokeMethod(delegate,args)
}
}
Run Code Online (Sandbox Code Playgroud)
代表,名称和args的内容在这里是什么?一般来说,委托是什么,它有什么样的内容?
任何帮助和解释将不胜感激