java.lang.Objectorg.springframework.beans.factory.config.BeanReferenceFactoryBean
All Implemented Interfaces:
SmartFactoryBean, BeanFactoryAware
Usually, the target bean will reside in a different bean definition file, using this FactoryBean to link it in and expose it under a different name. Effectively, this corresponds to an alias for the target bean.
NOTE: For XML bean definition files, an <alias>
tag is available that effectively achieves the same.
A special capability of this FactoryBean is enabled through its configuration as bean definition: The "targetBeanName" can be substituted through a placeholder, in combination with Spring's PropertyPlaceholderConfigurer . Thanks to Marcus Bristav for pointing this out!
Juergen - Hoeller1.2 - | Method from org.springframework.beans.factory.config.BeanReferenceFactoryBean Summary: |
|---|
| getObject, getObjectType, isEagerInit, isPrototype, isSingleton, setBeanFactory, setTargetBeanName |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.beans.factory.config.BeanReferenceFactoryBean Detail: |
|---|
|
|
|
|
|
|
This property is required. The value for this property can be substituted through a placeholder, in combination with Spring's PropertyPlaceholderConfigurer. |