org.jconfig.utils
Class CategoryBeanMapper

java.lang.Object
  |
  +--org.jconfig.utils.CategoryBeanMapper

public class CategoryBeanMapper
extends java.lang.Object

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.

Author:
Andreas Mecky andreasmecky@yahoo.de, Terry Dye terrydye@yahoo.com

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

mapBean

public 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)
Parameters:
obj - the java bean that will be configured
categoryName - the name of the category
configName - the name of the configuration

mapBean

public 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)
Parameters:
obj - the java bean that will be configured
categoryName - the name of the category


Copyright © 2001-2003 Andreas Mecky, Terry Dye. All Rights Reserved.