public class BaseBeanNameAware extends Object implements org.springframework.beans.factory.BeanNameAware
BeanNameAware
,
storing the bean name as an instance variable. This class can be used
as a superclass to other classes, allowing them to query their
bean name.Constructor and Description |
---|
BaseBeanNameAware() |
Modifier and Type | Method and Description |
---|---|
String |
getBeanName()
Get the bean name.
|
void |
setBeanName(String beanName)
Set the bean name; automatically invoked by Spring when
the bean is initialized.
|
public void setBeanName(String beanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public String getBeanName()
Copyright © 2013. All rights reserved.