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 (can be
null ). |
String |
getBeanName()
Return the name of the bean (never
null ). |
public String getBeanName()
null
).getBeanName
in interface NamedBean
public T getBeanInstance()
null
).