|
From: Nicolas De L. <nic...@ca...> - 2006-06-20 12:55:14
|
>>> One interesting thing to note is that all valid Java >>> programs are valid Groovy programs. >>> >> I did not try groovy miself. Does this mean that I can open a .java >> file >> using Spring groovy script support and get a bean ? >> > > It should - I haven't actually tried it but there should be no issues. I've made a simple test : A simple Java source can be used succesfully as a groovy script and used as scripted bean. This allows me to code on a running application ! As I use .java file from my Eclipse IDE, I have a natural restriction not to use groovy code not beeing java compatible, so I can use the same java source file as groovy bean in devs and as class in target (production) environment. My test was very simple, so I don't know if groovy may run complex java files, but this looks a very exciting solution, with high productivity in mind. That beeing said, it may be cleaner to have a "pure" java compiler/script engine to turn source java file into scripted-bean. Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. |