it.avutils.jmapper.mapper.generation
Class MapperGenerator

java.lang.Object
  extended by it.avutils.jmapper.mapper.generation.MapperGenerator

public class MapperGenerator
extends Object

This Class generates Mapper starting from the mappings.

Author:
Alessandro Vurro

Constructor Summary
MapperGenerator()
           
 
Method Summary
static Class<?> generateMapperClass(MappingBuilder mapping, Set<Method> methodsToGenerate)
           
static javassist.CtClass[] toCtClass(Class<?>... classes)
          This method transforms classes in CtClass[]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapperGenerator

public MapperGenerator()
Method Detail

generateMapperClass

public static Class<?> generateMapperClass(MappingBuilder mapping,
                                           Set<Method> methodsToGenerate)
                                    throws javassist.NotFoundException,
                                           Exception
Parameters:
mapping - parameter that containts the mappings
Returns:
a new instance of IMapper interface, following the mappingBuilder specifications
Throws:
Exception
javassist.NotFoundException

toCtClass

public static javassist.CtClass[] toCtClass(Class<?>... classes)
                                     throws Exception
This method transforms classes in CtClass[]

Parameters:
classes -
Returns:
CtClass[] version of classes parameter
Throws:
Exception


Copyright © 2013. All Rights Reserved.