|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 | |
---|---|
java.lang.String |
getBeanName(ModelMethod modelMethod)
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 java.lang.String getBeanName(ModelMethod modelMethod)
BeanNamingStrategy
ModelMethod
API to get access to it or provide hooks inside the
implementations.
getBeanName
in interface BeanNamingStrategy
modelMethod
- 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 |