|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbeanmapper.creator.DefaultBeanCreator
Basic BeanCreator
that assumes a no-arg constructor.
Constructor Summary | |
DefaultBeanCreator()
|
Method Summary | |
java.lang.Object |
createBean(java.lang.Class clazz,
MappingContext context)
Creates an instantance of clazz . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultBeanCreator()
Method Detail |
public java.lang.Object createBean(java.lang.Class clazz, MappingContext context) throws java.lang.InstantiationException, java.lang.IllegalAccessException
clazz
.
createBean
in interface BeanCreator
clazz
- type of bean that should be created.context
-
clazz
.
java.lang.InstantiationException
- if clazz
represents an abstract class, an interface, an array class,
a primitive type, or void; or if the class has no no-arg constructor;
java.lang.IllegalAccessException
- if the class or its nullary constructor is not accessible.Class.newInstance()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |