ma.glasnost.orika.impl.generator
Class ObjectFactoryGenerator

java.lang.Object
  extended by ma.glasnost.orika.impl.generator.ObjectFactoryGenerator

public class ObjectFactoryGenerator
extends Object

ObjectFactoryGenerator generates source code which implements an ObjectFactory capable of instantiating a given target type.


Constructor Summary
ObjectFactoryGenerator(MapperFactory mapperFactory, ConstructorResolverStrategy constructorResolverStrategy, CompilerStrategy compilerStrategy)
          Creates a new ObjectFactoryGenerator instance
 
Method Summary
 GeneratedObjectFactory build(Type<?> type, MappingContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectFactoryGenerator

public ObjectFactoryGenerator(MapperFactory mapperFactory,
                              ConstructorResolverStrategy constructorResolverStrategy,
                              CompilerStrategy compilerStrategy)
Creates a new ObjectFactoryGenerator instance

Parameters:
mapperFactory -
constructorResolverStrategy -
compilerStrategy -
Method Detail

build

public GeneratedObjectFactory build(Type<?> type,
                                    MappingContext context)
Parameters:
type -
context -
Returns:
an instance of the newly generated ObjectFactory


Copyright © 2013 Glasnost. All Rights Reserved.