public class NamedBeanHolder<T> extends Object implements NamedBean
AutowireCapableBeanFactory.resolveNamedBean(Class)
Constructor and Description |
---|
NamedBeanHolder(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.
|
String |
getBeanName()
Return the name of the bean.
|
public String getBeanName()
getBeanName
in interface NamedBean
public T getBeanInstance()