org.jbeanmapper.creator
Interface BeanCreator

All Known Implementing Classes:
DefaultBeanCreator

public interface BeanCreator

Creator of beans.

Author:
Brian Pugh

Method Summary
 java.lang.Object createBean(java.lang.Class clazz, MappingContext context)
          Creates an instantance of clazz.
 

Method Detail

createBean

public java.lang.Object createBean(java.lang.Class clazz,
                                   MappingContext context)
                            throws java.lang.InstantiationException,
                                   java.lang.IllegalAccessException
Creates an instantance of clazz.

Parameters:
clazz - type of bean that should be created.
context - The current mapping context.
Returns:
bean of type clazz.
Throws:
java.lang.InstantiationException - if the bean could not be instantiated.
java.lang.IllegalAccessException - if the class could not be instantiated because it is not accessable.