|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.app.helper.BeanCreationHelper
public class BeanCreationHelper
Helper class to handle all Java Reflection method invocations during Java Bean Creation.
Method Summary | |
---|---|
static void |
setBeanProperties(java.lang.Object instance,
java.util.Map props)
Populate the Java Bean instance using the given Map as the values of the bean properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setBeanProperties(java.lang.Object instance, java.util.Map props) throws AppException
Property mappings are done using Java Reflection and is performed as follows:
The keys in the Map are used as the names of the bean properties. If the Map contains a key with the value name it will be translated into a method call that will invoke the setName(...) method on the target bean using the value associated with the key in the Map.
instance
- The bean instance.props
- Map containing bean properties.
java.lang.Exception
- if the bean cannot be created.
AppException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |