ma.glasnost.orika.impl
Class DefaultMapperFactory.Builder

java.lang.Object
  extended by ma.glasnost.orika.impl.DefaultMapperFactory.MapperFactoryBuilder<DefaultMapperFactory,DefaultMapperFactory.Builder>
      extended by ma.glasnost.orika.impl.DefaultMapperFactory.Builder
Enclosing class:
DefaultMapperFactory

public static class DefaultMapperFactory.Builder
extends DefaultMapperFactory.MapperFactoryBuilder<DefaultMapperFactory,DefaultMapperFactory.Builder>

Use this builder to generate instances of DefaultMapperFactory with the desired customizations.

For example, an instance with no customizations could be generated with the following code:

 MapperFactory factory = new DefaultMapperFactory.Builder().build();
 

Author:
matt.deboer@gmail.com

Field Summary
 
Fields inherited from class ma.glasnost.orika.impl.DefaultMapperFactory.MapperFactoryBuilder
classMapBuilderFactory, classMaps, codeGenerationStrategy, compilerStrategy, constructorResolverStrategy, converterFactory, mapNulls, propertyResolverStrategy, superTypeStrategy, unenhanceStrategy, useAutoMapping, useBuiltinConverters
 
Constructor Summary
DefaultMapperFactory.Builder()
           
 
Method Summary
 DefaultMapperFactory build()
           
protected  DefaultMapperFactory.Builder self()
           
 
Methods inherited from class ma.glasnost.orika.impl.DefaultMapperFactory.MapperFactoryBuilder
classMapBuilderFactory, classMaps, compilerStrategy, constructorResolverStrategy, converterFactory, getCodeGenerationStrategy, mapNulls, propertyResolverStrategy, superTypeResolverStrategy, unenhanceStrategy, useAutoMapping, useBuiltinConverters, usedBuiltinConverters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMapperFactory.Builder

public DefaultMapperFactory.Builder()
Method Detail

build

public DefaultMapperFactory build()
Specified by:
build in class DefaultMapperFactory.MapperFactoryBuilder<DefaultMapperFactory,DefaultMapperFactory.Builder>
Returns:
a new instance of the Factory for which this builder is defined. The construction should be performed via the single-argument constructor which takes in a builder; no initialization code should be performed here, as it will not be inherited by subclasses; instead, place such initialization (defaults, etc.) in the Builder's constructor.

self

protected DefaultMapperFactory.Builder self()
Specified by:
self in class DefaultMapperFactory.MapperFactoryBuilder<DefaultMapperFactory,DefaultMapperFactory.Builder>
Returns:
an appropriately type-cast reference to this MapperFactoryBuilder


Copyright © 2013 Glasnost. All Rights Reserved.