org.dozer.classmap
Class ClassMapBuilder

java.lang.Object
  extended by org.dozer.classmap.ClassMapBuilder

public final class ClassMapBuilder
extends Object

Internal class for adding implicit field mappings to a ClassMap. Also, builds implicit ClassMap for class mappings that don't have an explicit custom xml mapping. Only intended for internal use.

Author:
tierney.matt, garsombke.franz

Nested Class Summary
static class ClassMapBuilder.AnnotationFieldsGenerator
           
static class ClassMapBuilder.AnnotationPropertiesGenerator
           
static class ClassMapBuilder.BeanMappingGenerator
           
static interface ClassMapBuilder.ClassMappingGenerator
           
static class ClassMapBuilder.CollectionMappingGenerator
           
static class ClassMapBuilder.MapMappingGenerator
           
 
Method Summary
static void addDefaultFieldMappings(ClassMappings classMappings, Configuration globalConfiguration)
          Prepares default mappings based on provided mapping definition
static ClassMap createDefaultClassMap(Configuration globalConfiguration, Class<?> srcClass, Class<?> destClass)
          Builds new default mapping on-the-fly for previously unknown mapped class pairs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDefaultClassMap

public static ClassMap createDefaultClassMap(Configuration globalConfiguration,
                                             Class<?> srcClass,
                                             Class<?> destClass)
Builds new default mapping on-the-fly for previously unknown mapped class pairs.

Parameters:
globalConfiguration -
srcClass -
destClass -
Returns:

addDefaultFieldMappings

public static void addDefaultFieldMappings(ClassMappings classMappings,
                                           Configuration globalConfiguration)
Prepares default mappings based on provided mapping definition

Parameters:
classMappings -
globalConfiguration -


Copyright © 2005-2011 dozer. All Rights Reserved.