org.springframework.config.java.naming
Class ChainedStrategy
java.lang.Object
org.springframework.config.java.naming.ChainedStrategy
- All Implemented Interfaces:
- BeanNamingStrategy
public class ChainedStrategy
- extends Object
- implements BeanNamingStrategy
Chain-like implementation naming strategy.
Allows a stack of strategies to be specified, returning the first non-null
name.
- Author:
- Costin Leau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainedStrategy
public ChainedStrategy(BeanNamingStrategy[] strategies)
getBeanName
public String getBeanName(Method beanCreationMethod)
- Description copied from interface:
BeanNamingStrategy
- Create the bean name based on the given method. If more contextual
information is needed, consider using the Method API to get access to it
or provide hooks inside the implementations.
- Specified by:
getBeanName
in interface BeanNamingStrategy
- Parameters:
beanCreationMethod
- the method which creates the actual bean
instance
- Returns:
- the bean name
Copyright � 2005-2008 Spring Framework. All Rights Reserved.