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 (can be
null). |
java.lang.String |
getBeanName()
Return the name of the bean (never
null). |
public NamedBeanHolder(java.lang.String beanName,
T beanInstance)
beanName - the name of the beanbeanInstance - the corresponding bean instancepublic java.lang.String getBeanName()
null).getBeanName in interface NamedBeanpublic T getBeanInstance()
null).