public class NamedBeanHolder<T> extends java.lang.Object implements NamedBean
AutowireCapableBeanFactory.resolveNamedBean(Class)
Modifier and Type | Field and Description |
---|---|
private T |
beanInstance |
private java.lang.String |
beanName |
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.
|
private final java.lang.String beanName
private final T beanInstance
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()