Examples of AStringFunction0


Examples of com.ajjpj.amapper.util.func.AStringFunction0

    }
    public void duplicateRegistration(APath path, Object s) {
        warn("The object " + s + " was visited twice while navigating primary references. Maybe one of the references should be deferred, maybe the object is just referenced from two 'parents' as a child.");
    }
    public void generatedCompiledMappingDef(final String code) {
        debug(new AStringFunction0() {
            @Override public String apply() throws RuntimeException {
                return "------------------------- Generated Code --------------------------\n" + code;
            }
        });
    }
View Full Code Here

Examples of com.ajjpj.amapper.util.func.AStringFunction0

            return AMapperExceptionHandler.onError(exc, path);
        }
    }

    @Override public AOption<Object> mapObject(final APath path, final Object sourceRaw, Object target, AQualifiedSourceAndTargetType types, AMap<String, Object> context) {
        logger.debug (new AStringFunction0() {
            @Override
            public String apply() {
                return "map: " + sourceRaw + " @ " + path;
            }
        });
View Full Code Here

Examples of com.ajjpj.amapper.util.func.AStringFunction0

            return AMapperExceptionHandler.onError(exc, path);
        }
    }

    @Override public Object mapValue(final APath path, final Object source, AQualifiedSourceAndTargetType types, AMap<String, Object> context) {
        logger.debug (new AStringFunction0() {
            @Override
            public String apply() {
                return "map: " + source + " @ " + path;
            }
        });
View Full Code Here

Examples of com.ajjpj.amapper.util.func.AStringFunction0

            return AMapperExceptionHandler.onError(exc, path);
        }
    }

    @Override public void mapDeferred(final APath path, final Object sourceRaw, final AFunction0<Object, Exception> target, final AQualifiedSourceAndTargetType types, final AVoidFunction1<Object, Exception> callback) {
        logger.debug (new AStringFunction0() {
            @Override public String apply() {
                return "map deferred: " + types + " @ " + path;
            }
        });

        deferredWork.add(new AVoidFunction0<RuntimeException>() {
            @Override public void apply() {
                logger.debug(new AStringFunction0() {
                    @Override
                    public String apply() {
                        return "processing deferred: " + types + " @ " + path;
                    }
                });
View Full Code Here

Examples of com.ajjpj.amapper.util.func.AStringFunction0

            AMapperExceptionHandler.onError(exc, path);
        }
    }

    @Override public void diffValue(final APath path, final Object sourceOld, final Object sourceNew, AQualifiedSourceAndTargetType types, AMap<String, Object> contextOld, AMap<String, Object> contextNew, boolean isDerived) {
        logger.debug (new AStringFunction0() {
            @Override public String apply() {
                return "diff value: " + sourceOld + " <-> " + sourceNew + " @ " + path;
            }
        });
        try {
View Full Code Here

Examples of com.ajjpj.amapper.util.func.AStringFunction0

            AMapperExceptionHandler.onError(exc, path);
        }
    }

    @Override public void diffObject(final APath path, final Object sourceOldRaw, final Object sourceNewRaw, AQualifiedSourceAndTargetType types, AMap<String, Object> contextOld, AMap<String, Object> contextNew, boolean isDerived) {
        logger.debug (new AStringFunction0() {
            @Override
            public String apply() {
                return "diff object: " + sourceOldRaw + " <-> " + sourceNewRaw + " @ " + path;
            }
        });
View Full Code Here

Examples of com.ajjpj.amapper.util.func.AStringFunction0

        }
    }


    @Override public void diffDeferred(final APath path, final Object sourceOldRaw, final Object sourceNewRaw, final AQualifiedSourceAndTargetType types, final AMap<String, Object> contextOld, final AMap<String, Object> contextNew, final boolean isDerived) {
        logger.debug (new AStringFunction0() {
            @Override
            public String apply() {
                return "diff deferred: " + sourceOldRaw + " <-> " + sourceNewRaw + " @ " + path;
            }
        });

        deferredWork.add(new AVoidFunction0<RuntimeException>() {
            @Override public void apply() {
                logger.debug(new AStringFunction0() {
                    @Override
                    public String apply() {
                        return "processing deferred diff: " + types + "@" + path;
                    }
                });
View Full Code Here

Examples of com.ajjpj.amapper.util.func.AStringFunction0

            return mapObject(path, source, target, types, context);
        }
    }

    @Override public AOption<Object> mapObject(final APath path, final Object sourceRaw, Object target, AQualifiedSourceAndTargetType types, AMap<String, Object> context) throws Exception {
        logger.debug (new AStringFunction0() {
            @Override
            public String apply() {
                return "map: " + sourceRaw + " @ " + path;
            }
        });
View Full Code Here

Examples of com.ajjpj.amapper.util.func.AStringFunction0

        return AOption.some(result);
    }

    @Override public Object mapValue(final APath path, final Object source, AQualifiedSourceAndTargetType types, AMap<String, Object> context) {
        logger.debug (new AStringFunction0() {
            @Override
            public String apply() {
                return "map: " + source + " @ " + path;
            }
        });
View Full Code Here

Examples of com.ajjpj.amapper.util.func.AStringFunction0

        final AValueMappingDef<Object, Object, H> vm = valueMappings.expectedEntryFor(types, path);
        return vm.map(source, types, this, context);
    }

    @Override public void mapDeferred(final APath path, final Object sourceRaw, final AFunction0<Object, Exception> target, final AQualifiedSourceAndTargetType types, final AVoidFunction1<Object, Exception> callback) {
        logger.debug (new AStringFunction0() {
            @Override public String apply() {
                return "map deferred: " + types + " @ " + path;
            }
        });

        deferredWork.add(new AVoidFunction0<Exception>() {
            @Override public void apply() throws Exception {
                logger.debug(new AStringFunction0() {
                    @Override
                    public String apply() {
                        return "processing deferred: " + types + " @ " + path;
                    }
                });
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.