org.dozer.factory
Class JAXBBeanFactory

java.lang.Object
  extended by org.dozer.factory.JAXBBeanFactory
All Implemented Interfaces:
BeanFactory

public class JAXBBeanFactory
extends Object
implements BeanFactory

Public custom bean factory that can be used by applition code when mapping JAXB data objects

Author:
Vincent Jassogne

Constructor Summary
JAXBBeanFactory()
           
 
Method Summary
 Object createBean(Object srcObj, Class<?> srcObjClass, String beanId)
          Creat a bean implementation of a jaxb interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBBeanFactory

public JAXBBeanFactory()
Method Detail

createBean

public Object createBean(Object srcObj,
                         Class<?> srcObjClass,
                         String beanId)
Creat a bean implementation of a jaxb interface.

Specified by:
createBean in interface BeanFactory
Parameters:
srcObj - The source object
srcObjClass - The source object class
beanId - the name of the destination interface class
Returns:
A implementation of the destination interface


Copyright © 2009 dozer. All Rights Reserved.