类 NamedBeanHolder<T>
- java.lang.Object
- org.springframework.beans.factory.config.NamedBeanHolder<T>
- 类型参数:
T
- the bean type
- 所有已实现的接口:
NamedBean
public class NamedBeanHolder<T> extends Object implements NamedBean
A simple holder for a given bean name plus bean instance.- 从以下版本开始:
- 4.3.3
- 作者:
- Juergen Hoeller
- 另请参阅:
AutowireCapableBeanFactory.resolveNamedBean(Class)
构造器概要
构造器 构造器 说明 NamedBeanHolder(String beanName, T beanInstance)
Create a new holder for the given bean name plus instance.
构造器详细资料
NamedBeanHolder
public NamedBeanHolder(String beanName, T beanInstance)
Create a new holder for the given bean name plus instance.- 参数:
beanName
- the name of the beanbeanInstance
- the corresponding bean instance
方法详细资料
getBeanName
public String getBeanName()
Return the name of the bean.- 指定者:
getBeanName
在接口中NamedBean
getBeanInstance
public T getBeanInstance()
Return the corresponding bean instance.