|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.config.java.naming.MethodNameStrategy
public class MethodNameStrategy
Naming strategy which uses the method name for generating the bean name. Allows configuration for include the owning class short name or FQN as well.
Nested Class Summary | |
---|---|
static class |
MethodNameStrategy.Prefix
Naming prefix. |
Constructor Summary | |
---|---|
MethodNameStrategy()
Default, empty constructor. |
|
MethodNameStrategy(MethodNameStrategy.Prefix prefix)
Constructor allowing the naming prefix to be specified. |
Method Summary | |
---|---|
String |
getBeanName(Method beanCreationMethod)
Create the bean name based on the given method. |
void |
setPrefix(MethodNameStrategy.Prefix prefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodNameStrategy()
public MethodNameStrategy(MethodNameStrategy.Prefix prefix)
prefix
- naming prefixMethod Detail |
---|
public String getBeanName(Method beanCreationMethod)
BeanNamingStrategy
getBeanName
in interface BeanNamingStrategy
beanCreationMethod
- the method which creates the actual bean
instance
public void setPrefix(MethodNameStrategy.Prefix prefix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |