A bean definition scanner that detects bean candidates on the classpath,
registering corresponding bean definitions with a given registry (BeanFactory
or ApplicationContext).
Candidate classes are detected through configurable type filters.
The central element is the
javax.annotation.Resource annotation
for annotation-driven injection of named beans, by default from the containing
Spring BeanFactory, with only mappedName references resolved in JNDI.
The
CommonAnnotationBeanPostProcessor.setAlwaysUseJndiLookup "alwaysUseJndiLookup" flag enforces JNDI lookups
equivalent to standard Java EE 5 resource injection for name references
and default names as well.