I will cover the easy way to do this in a later post, but in this post we will look at how Spring processes annotations.

Available JSR-250 Spring Annotations

The spring-beans-3.x.jar contains the package org.springframework.beans.factory.annotation. In this package you will find the following BeanPostProcessors:

  • AutowiredAnnotationBeanPostProcessor
  • InitDestroyAnnotationBeanPostProcessor
  • QualifierAnnotationBeanPostProcessor
  • RequiredAnnotationBeanPostProcesor

These PostProcessors facilitate the following annotations which can be found in the same package

  • @Autowired
  • @Qualifier
  • @Required
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s