it.avutils.jmapper.mapper.generation
Class MapperGenerator
java.lang.Object
it.avutils.jmapper.mapper.generation.MapperGenerator
public class MapperGenerator
- extends Object
This Class generates Mapper starting from the mappings.
- Author:
- Alessandro Vurro
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapperGenerator
public MapperGenerator()
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.