Click here to Skip to main content
Click here to Skip to main content

Tagged as

Spring Geek Night

, 3 Mar 2010
Rate this:
Please Sign up or sign in to vote.
Spring Geek Night at Technopark Zurich

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.

<iframe language="javascript1.1" marginwidth="0" marginheight="0" src=""http://ads.geekswithblogs.net/a.aspx?ZoneID=5&Task=Get&PageID=31016&SiteID=1"" frameborder="0" width="1" height="1" />

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Cédric Menzi
Software Developer (Senior) Metrohm AG
Switzerland Switzerland
I'm a passionate programmer with heart and soul. I've started programming in 2001 with C++, VB6 and then in 2002 with the .NET Framework. C# and I are still married, because we always solving our problems in a clean, easy and programmatic way.
 
My other passions are coffee and single-malt whisky. As a owner of a Rocket Espresso Milano, I always get the perfect shot to get up in the morning.
Follow on   Twitter

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web04 | 2.8.140814.1 | Last Updated 3 Mar 2010
Article Copyright 2010 by Cédric Menzi
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid