|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jconfig.utils.CategoryBeanMapper
This class is a little helper utility that will configure a simple java bean with the properties inside a category. The set methods of the java bean will used to configure the bean and the names of the set methods must match the names of the properties in the category.
Method Summary | |
static void |
mapBean(java.lang.Object obj,
java.lang.String categoryName)
This method will configure a java bean with the properties inside the defined category of the default configuration (usually loaded from the config.xml file) |
static void |
mapBean(java.lang.Object obj,
java.lang.String categoryName,
java.lang.String configName)
This method will configure a java bean with the properties inside the defined category of the defined configuration (usually loaded from the config.xml file) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void mapBean(java.lang.Object obj, java.lang.String categoryName, java.lang.String configName)
obj
- the java bean that will be configuredcategoryName
- the name of the categoryconfigName
- the name of the configurationpublic static void mapBean(java.lang.Object obj, java.lang.String categoryName)
obj
- the java bean that will be configuredcategoryName
- the name of the category
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |