This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring 3 Annotation Reference

 
Mark L Crannage
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Iam looking for some reference documentation for the Spring 3 annotations. I looked through the Spring 3 official specification and cannot even find details on basic annotations like @Test.

Does anyone know of any good reference documentation for Spring 3 annotations ?

Thanks,
Mark C
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the Dzone ref card for Spring.
http://refcardz.dzone.com/refcardz/spring-configuration?oid=sb001
 
Mark L Crannage
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Sam,

I downloaded that card and it too has no reference to the @Test annotation.

I also tried to look in the AspectJ specifications and was not able to find this or a comprehensive list of all annotations.

any ideas ?

thanks,

Mark
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The one I pasted in earlier was for Spring configuration. There is one for spring annotations too.
http://refcardz.dzone.com/refcardz/spring-annotations

Its got a table full of testing annotations + aspectJ.... its not got one that says @Test. I don't recollect a spring specific @Test annotation... Jnuit @Test what is normally used ...
 
John Grath
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used annotation as markers for my own pointcuts at method level. I would recommend declaring methods as point cut expressions instead as it is easy to forget to
annotate methods while developing.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As was stated @Test is not a Spring annotation so if you were searching the reference guide for just this you will not find it. However a lot of the annotations are documented in the reference guide. In addition to that and the additional resources others have posted Gordon Dickens did a lot of work identifying Annotations for the Spring projects and more (aspectj, hibernate, junit, mockito etc)

You can find it here:
http://gordondickens.com/wordpress/2011/05/20/annotation-reference-for-spring-projects/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic