org.springframework.config.java.naming
Interface BeanNamingStrategy
- All Known Implementing Classes:
- ChainedStrategy, MethodNameStrategy
public interface BeanNamingStrategy
Strategy interface for constructing a bean name from a java method.
- Author:
- Costin Leau, Chris Beams
Method Summary |
java.lang.String |
getBeanName(ModelMethod beanMethod)
Create the bean name based on the given method. |
getBeanName
java.lang.String getBeanName(ModelMethod beanMethod)
- Create the bean name based on the given method. If more contextual information is needed,
consider using the
ModelMethod
API to get access to it or provide hooks inside the
implementations.
- Parameters:
beanMethod
- the method which creates the actual bean instance
- Returns:
- the bean name