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 Summary
ConstructorDescriptionNamedBeanHolder
(String beanName, T beanInstance) Create a new holder for the given bean name plus instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn the corresponding bean instance.Return the name of the bean.
-
Constructor Details
-
NamedBeanHolder
Create a new holder for the given bean name plus instance.- Parameters:
beanName
- the name of the beanbeanInstance
- the corresponding bean instance
-
-
Method Details
-
getBeanName
Return the name of the bean.- Specified by:
getBeanName
in interfaceNamedBean
-
getBeanInstance
Return the corresponding bean instance.
-