This factory resolves given bean names as JNDI names within the J2EE application's "java:comp/env/" namespace. It caches the resolved types for all obtained objects, and optionally also caches shareable objects (if they are explicitly marked as {@link #addShareableResource shareable resource}.
The main intent of this factory is usage in combination with Spring's {@link org.springframework.context.annotation.CommonAnnotationBeanPostProcessor}, configured as "resourceFactory" for resolving @Resource
annotations as JNDI objects without intermediate bean definitions. It may be used for similar lookup scenarios as well, of course, in particular if BeanFactory-style type checking is required.
@author Juergen Hoeller
@since 2.5
@see org.springframework.beans.factory.support.DefaultListableBeanFactory
@see org.springframework.context.annotation.CommonAnnotationBeanPostProcessor
|
|
|
|