Geeks With Blogs

@cmenzi
  • cmenzi Only 12 days! about 1644 days ago
  • cmenzi Got fucked by a pituitary case. about 1702 days ago
  • cmenzi I'v heard edi fice is down. How could this happen? about 1748 days ago
  • cmenzi Struggling jboss to IBM MQ about 1756 days ago
  • cmenzi iPhone is nice to tweet! about 1772 days ago
  • cmenzi @SteffenNET Why pay less for an automatic when i can pay more to do all the things manually! about 1785 days ago

News Member of clean code developer

I have joined Anti-IF Campaign

Member of geekswithblogs

XING

Cédric Menzi Yet Another Burst Programming Session Will Solve It

SpingSource

Spring Geek Night at Technopark Zurich

 


Yesterday, I was at the spring geek night in Zurich. Sam Brannen, the author of the Spring TestContext Framework and previously a member of the SpringSource dm Server development team, has presented the new features of Spring 3.0.

With Spring 3.0 nearly everything is annotable. So, for all those who hate XML with Spring 3.0 you can now declare all things in your code.

A very magic stuff are these meta-annotations. Means, "annotate your annotations" and use the combination of it.

Normally you have done something like this.

@Service
@Transactional
public class CustomerService{
...
}

Then you can define the combination.

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Service
@Transactional
public @interface TransactionalService {}

Now you can use this new annotation for your services.

@TransactionalService 
public class CustomerService{
...
}

I know this is a Java feature, but I've never realised that's possible.

 

Posted on Thursday, February 25, 2010 11:38 AM Geeky Stuff , Java , Spring , CodeProject | Back to top


Comments on this post: Spring Geek Night

No comments posted yet.
Your comment:
 (will show your gravatar)
 


Copyright © Cédric Menzi | Powered by: GeeksWithBlogs.net | Join free