Dies ist das Archiv des ehemaligen Forums zum Thema Groovy, Grails, Griffon und Bean Scripting Framework, welches unter groovy-forum.de existierte. Die neue Adresse des Groovy-Forums ist: http://codekicker.de/fragen/themen/groovy.
/* Ausschnitt aus: org.codehaus.groovy.grails.plugins.orm.hibernate.HibernateGrailsPlugin.groovy */ // This is the code that deals with dynamic finders. It looks up a static method, if it exists it invokes it // otherwise it trys to match the method invocation to one of the dynamic methods. If it matches it will // register a new method with the ExpandoMetaClass so the next time it is invoked it doesn't have this overhead. mc.'static'.methodMissing = {String methodName, args -> def result = null StaticMethodInvocation method = dynamicMethods.find {it.isMethodMatch(methodName)} if (method) { // register the method invocation for next time synchronized(this) { mc.'static'."$methodName" = {List varArgs -> method.invoke(dc.clazz, methodName, varArgs) } } result = method.invoke(dc.clazz, methodName, args) } else { throw new MissingMethodException(methodName, delegate, args) } result }
Diese Seite zeigt den Thread "Re: Meta Object Protocol" der ehemaligen Webseite groovy-forum.de, welche durch einen Serverunfall zerstört wurde. codekicker.de hat viele Konversationen über die beliebte Programmiersprache Groovy und zugehörige Frameworks wie das Grails-Framework retten können.
Hast Du eine Frage zum Thema Groovy, Grails oder allgemein Java? Viele ehemalige groovy-forum.de Mitglieder beantworten dir auf codekicker.de deine Frage! Stelle jetzt eine Frage!
Viele weitere Diskussionen zu Grails und Groovy befinden sich auf der Threadübersicht des alten groovy-forum.de.