Class NamedBeanHolder<T>
java.lang.Object
org.springframework.beans.factory.config.NamedBeanHolder<T>
- Type Parameters:
- T- the bean type
- All Implemented Interfaces:
- NamedBean
A simple holder for a given bean name plus bean instance.
- Since:
- 4.3.3
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionNamedBeanHolder(String beanName, T beanInstance) Create a new holder for the given bean name plus instance.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the corresponding bean instance.Return the name of the bean.
- 
Constructor Details- 
NamedBeanHolderCreate a new holder for the given bean name plus instance.- Parameters:
- beanName- the name of the bean
- beanInstance- the corresponding bean instance
 
 
- 
- 
Method Details- 
getBeanNameReturn the name of the bean.- Specified by:
- getBeanNamein interface- NamedBean
 
- 
getBeanInstanceReturn the corresponding bean instance.
 
-