|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.slim3.commons.convention.BeanConvention
public class BeanConvention
A class for bean conventions.
| Field Summary | |
|---|---|
protected static String |
CLASS_NAME
The class name. |
static String |
CONVENTION_KEY
The key for bean convention class. |
protected static BeanConvention |
instance
The instance. |
| Constructor Summary | |
|---|---|
BeanConvention()
Constructor. |
|
| Method Summary | |
|---|---|
String |
extractBeanSuffix(String name)
Extracts a bean suffix from the name. |
static BeanConvention |
getInstance()
Returns the instance. |
static void |
initialize()
Initializes this class. |
Class<?> |
toBeanClass(String name)
Converts the bean name into a bean class. |
String |
toBeanName(Class<?> clazz)
Converts the class into a bean name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONVENTION_KEY
protected static final String CLASS_NAME
protected static BeanConvention instance
| Constructor Detail |
|---|
public BeanConvention()
| Method Detail |
|---|
public static void initialize()
public static BeanConvention getInstance()
public String extractBeanSuffix(String name)
name - the name
public String toBeanName(Class<?> clazz)
clazz - the class
public Class<?> toBeanClass(String name)
name - the bean name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||