• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring 3 Annotation Reference

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic