Vita Rara: A Life Uncommon

Zero Config

As Phil mentioned Groovy 1.0 does not have support for annotations. I'm giving serious thought to starting to work with the Groovy TRUNK, so I can get annotation support.

I'm looking at this for two reasons. 1. I'd like to try Guice with GW. I think annotation driven dependencies looks very interesting, and it would allow the service layer beans to change their dependencies without requiring a context restart. (I think. I've been meaning to write Crazy Bob and run the idea past him.) 2. I'd like to get rid of the struts.xml file, for all but the most exotic situations. I really want to get to the point of code it, run it.

One of the motivations for me in doing this was that as I worked out a query in a DAO every time I tweaked the query Jetty would need to restart the application, which caused Spring to restart, which caused Hibernate to reload its session. I could only get a handful of restart before I needed to kill -9 the jetty process and restart. Plus there's the time sitting there waiting for Spring to wire my over 100 beans. Now I just edit the query in the DAO, save and reload in my browser. Done.

Now, I'd like to take it to the next level. Write an action, annotate it with results and dependencies, save and run it.

Mark Menard

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2
  • Allowed HTML tags: <a> <img> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <h1> <h2> <h3>
  • Lines and paragraphs break automatically.
More information about formatting options