public class NamedBeanHolder<T> extends java.lang.Object implements NamedBean
AutowireCapableBeanFactory.resolveNamedBean(Class)
Constructor and Description |
---|
NamedBeanHolder(java.lang.String beanName,
T beanInstance)
Create a new holder for the given bean name plus instance.
|
Modifier and Type | Method and Description |
---|---|
T |
getBeanInstance()
Return the corresponding bean instance.
|
java.lang.String |
getBeanName()
Return the name of the bean.
|
public NamedBeanHolder(java.lang.String beanName, T beanInstance)
beanName
- the name of the beanbeanInstance
- the corresponding bean instancepublic java.lang.String getBeanName()
getBeanName
in interface NamedBean
public T getBeanInstance()