|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectma.glasnost.orika.impl.DefaultMapperFactory.MapperFactoryBuilder<F,B>
F - B - public abstract static class DefaultMapperFactory.MapperFactoryBuilder<F extends DefaultMapperFactory,B extends DefaultMapperFactory.MapperFactoryBuilder<F,B>>
MapperFactoryBuilder provides an extensible Builder definition usable for
providing your own Builder class for subclasses of DefaultMapperFactory.
See the defined DefaultMapperFactory.MapperFactoryBuilder below for example of how to subclass.
| Field Summary | |
|---|---|
protected ClassMapBuilderFactory |
classMapBuilderFactory
The ClassMapBuilderFactory configured for the MapperFactory |
protected Set<ClassMap<?,?>> |
classMaps
The class maps configured to initialize the MapperFactory |
protected CodeGenerationStrategy |
codeGenerationStrategy
The CodeGenerationStrategy configured for the MapperFactory |
protected CompilerStrategy |
compilerStrategy
The CompilerStrategy configured for the MapperFactory |
protected ConstructorResolverStrategy |
constructorResolverStrategy
The ConstructorResolverStrategy configured for the MapperFactory |
protected ConverterFactory |
converterFactory
The ConverterFactory configured for the MapperFactory |
protected boolean |
mapNulls
The configured value of whether or not to map null values; if false, they will be ignored, and any existing value is unchanged in case of null. |
protected PropertyResolverStrategy |
propertyResolverStrategy
The PropertyResolverStrategy configured for the MapperFactory |
protected SuperTypeResolverStrategy |
superTypeStrategy
The SuperTypeResolverStrategy configured for the MapperFactory |
protected UnenhanceStrategy |
unenhanceStrategy
The UnenhanceStrategy configured for the MapperFactory |
protected boolean |
useAutoMapping
The configured value of whether or not to use auto-mapping for the MapperFactory |
protected boolean |
useBuiltinConverters
The configured value of whether or not to use built-in converters for the MapperFactory |
| Constructor Summary | |
|---|---|
DefaultMapperFactory.MapperFactoryBuilder()
Instantiates a new MapperFactoryBuilder |
|
| Method Summary | |
|---|---|
abstract F |
build()
|
B |
classMapBuilderFactory(ClassMapBuilderFactory classMapBuilderFactory)
Configure the ClassMapBuilderFactory to use with the generated MapperFactory |
B |
classMaps(Set<ClassMap<?,?>> classMaps)
Set the class maps to be used in initializing this mapper factory |
B |
compilerStrategy(CompilerStrategy compilerStrategy)
Configure the CompilerStrategy to use with the generated MapperFactory |
B |
constructorResolverStrategy(ConstructorResolverStrategy constructorResolverStrategy)
Configure the ConstructorResolverStrategy to use with the generated MapperFactory |
B |
converterFactory(ConverterFactory converterFactory)
Configure the ConverterFactory to use with the generated MapperFactory |
CodeGenerationStrategy |
getCodeGenerationStrategy()
Get a reference to the CodeGenerationStrategy associated with this MapperFactory, which may be used to configure/customize the individual mapping Specifications that are used to generate code for the various mapping scenarios. |
B |
mapNulls(boolean mapNulls)
Configure whether to map nulls in generated mapper code |
B |
propertyResolverStrategy(PropertyResolverStrategy propertyResolverStrategy)
Configure the PropertyResolverStrategy to use with the generated MapperFactory |
protected abstract B |
self()
|
B |
superTypeResolverStrategy(SuperTypeResolverStrategy superTypeStrategy)
Configure the SuperTypeResolverStrategy to use with the generated MapperFactory |
B |
unenhanceStrategy(UnenhanceStrategy unenhanceStrategy)
Configure the UnenhanceStrategy to use with the generated MapperFactory |
B |
useAutoMapping(boolean useAutoMapping)
Configure whether to use auto-mapping with the generated MapperFactory |
B |
useBuiltinConverters(boolean useBuiltinConverters)
Configure whether to use built-in converters with the generated MapperFactory |
B |
usedBuiltinConverters(boolean useBuiltinConverters)
Deprecated. use useBuiltinConverters(boolean) instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected UnenhanceStrategy unenhanceStrategy
protected SuperTypeResolverStrategy superTypeStrategy
protected ConstructorResolverStrategy constructorResolverStrategy
protected CompilerStrategy compilerStrategy
protected Set<ClassMap<?,?>> classMaps
protected ConverterFactory converterFactory
protected PropertyResolverStrategy propertyResolverStrategy
protected ClassMapBuilderFactory classMapBuilderFactory
protected CodeGenerationStrategy codeGenerationStrategy
protected boolean useBuiltinConverters
protected boolean useAutoMapping
protected boolean mapNulls
| Constructor Detail |
|---|
public DefaultMapperFactory.MapperFactoryBuilder()
| Method Detail |
|---|
protected abstract B self()
this
MapperFactoryBuilderpublic B classMaps(Set<ClassMap<?,?>> classMaps)
classMaps -
this MapperFactoryBuilderpublic B unenhanceStrategy(UnenhanceStrategy unenhanceStrategy)
unenhanceStrategy -
this MapperFactoryBuilderpublic B superTypeResolverStrategy(SuperTypeResolverStrategy superTypeStrategy)
superTypeStrategy -
this MapperFactoryBuilderpublic B constructorResolverStrategy(ConstructorResolverStrategy constructorResolverStrategy)
constructorResolverStrategy -
this MapperFactoryBuilderpublic B converterFactory(ConverterFactory converterFactory)
converterFactory -
this MapperFactoryBuilderpublic B compilerStrategy(CompilerStrategy compilerStrategy)
compilerStrategy -
this MapperFactoryBuilderpublic B propertyResolverStrategy(PropertyResolverStrategy propertyResolverStrategy)
propertyResolverStrategy -
this MapperFactoryBuilderpublic B classMapBuilderFactory(ClassMapBuilderFactory classMapBuilderFactory)
classMapBuilderFactory -
this MapperFactoryBuilderpublic B useAutoMapping(boolean useAutoMapping)
useAutoMapping -
this MapperFactoryBuilderpublic B useBuiltinConverters(boolean useBuiltinConverters)
useBuiltinConverters -
this MapperFactoryBuilder@Deprecated public B usedBuiltinConverters(boolean useBuiltinConverters)
useBuiltinConverters(boolean) instead
useBuiltinConverters -
public B mapNulls(boolean mapNulls)
mapNulls -
this MapperFactoryBuilderpublic CodeGenerationStrategy getCodeGenerationStrategy()
public abstract F build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||