Geeks With Blogs

@cmenzi
  • cmenzi Only 12 days! about 1821 days ago
  • cmenzi Got fucked by a pituitary case. about 1879 days ago
  • cmenzi I'v heard edi fice is down. How could this happen? about 1925 days ago
  • cmenzi Struggling jboss to IBM MQ about 1933 days ago
  • cmenzi iPhone is nice to tweet! about 1949 days ago
  • cmenzi @SteffenNET Why pay less for an automatic when i can pay more to do all the things manually! about 1962 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

# re: Spring Geek Night
Requesting Gravatar...
Zurich is such a wonderful city. I've been there once and I was amazed by the energy it gave me. There are so many things to do all the time. I bet this festival was great. dana
Left by dana on Mar 17, 2015 12:37 PM

# re: Spring Geek Night
Requesting Gravatar...
I like to see that these events take place in diverse locations, because each interesting city in the world must attract through quality conferences and events. I'll try to participate next time myself to this event, especially if it takes place in Zurich.
Melisa
Left by Aria on Mar 19, 2015 10:37 AM

Your comment:
 (will show your gravatar)


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