Geeks With Blogs

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

# re: Spring Geek Night
Requesting Gravatar...
Very usefull information. You realy do make it seem easy and the events realy are interesting. I can't wait for the next event so i can go there myself. Sonia
Left by Sonia on Mar 31, 2015 5:13 PM

# re: Spring Geek Night
Requesting Gravatar...
Hello! Thank you for sharing this information with your readers. This codes helped me so much, because i hate XML
!
Left by Ion on May 28, 2015 9:53 AM

# re: Spring Geek Night
Requesting Gravatar...
every time i visit your blog i find information that can help me. it took me a while to understand these codes, but in the end i got them. keep up the good work!
Left by Mandru on Jun 02, 2015 10:37 AM

# re: Spring Geek Night
Requesting Gravatar...
hey. first i want to salute your initiative abotu sharing all these informations on your blog. very useful content you provide here. Second, i used these code on my XML using the Spring 3.0, about you wrote in this post, and it really helped me. thanks!
Left by valerian on Jun 10, 2015 11:40 AM

# re: Spring Geek Night
Requesting Gravatar...
Sam Brannen did a great job with this Spring 3.0. it really helped me with XML by making my job much easier. also, thanks you, geek, for sharing this with us.
Left by Cosmin on Jun 10, 2015 1:14 PM

# re: Spring Geek Night
Requesting Gravatar...
i want to thank you for all the good information you shared with us in this post. Sam Brannen did a great job with Spring 3.0. which is a good software.
Left by alex on Jun 11, 2015 1:06 PM

# re: Spring Geek Night
Requesting Gravatar...
must have been a intelectual spring night. i followed sam brannen and i must say that i was impressed about how good is him in this field. mircea
Left by mircea vlad on Jun 15, 2015 9:32 AM

# re: Spring Geek Night
Requesting Gravatar...
one more spring geek night. thank you for posting on this blog. i found your articles very useful for my field of interest, but it's time to say goodbye :(
Left by andreimartianu@gmail.com on Jun 15, 2015 12:18 PM

# re: Spring Geek Night
Requesting Gravatar...
That was actually usefull. Thak you for providing us such information and you have the patience to explain step by step. Cheers, Sarah
Left by Mitchell on Jun 17, 2015 11:57 AM

Your comment:
 (will show your gravatar)


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