AContextExtractor contextExtractor,
Collection<? extends APreProcessor> preProcessors,
Collection<? extends APostProcessor> postProcessors,
boolean compile) throws Exception {
final AMapperImpl innerRaw = new AMapperImpl<H> (objectMappings, valueMappings, logger, helperFactory, identifierExtractor, contextExtractor, preProcessors, postProcessors);
this.inner = compile ? innerRaw.compile() : innerRaw;
}
@SuppressWarnings("unchecked")
@Override public <T> T map(Object source, AType sourceType, AQualifier sourceQualifier, T target, AType targetType, AQualifier targetQualifier) throws Exception {
return (T) inner.map(source, sourceType, sourceQualifier, target, targetType, targetQualifier).getOrElse(null);