Package com.ajjpj.amapper.core.impl

Examples of com.ajjpj.amapper.core.impl.AMapperImpl.compile()


                              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);
View Full Code Here


                              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;
        this.preProcessors = new CanHandleSourceAndTargetCache<>("no preprocessor found for ", preProcessors);
    }

    @SuppressWarnings("unchecked")
    @Override public <T> T map(Object source, AType sourceType, AQualifier sourceQualifier, T target, AType targetType, AQualifier targetQualifier) throws Exception {
View Full Code Here

                              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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.