Package com.googlecode.objectify

Examples of com.googlecode.objectify.ObjectifyFactory.construct()


    Type componentType = GenericUtils.getMapValueType(tk.getType());
    final Translator<Object, Object> componentTranslator = fact.getTranslators().get(new TypeKey(componentType, tk), ctx, path);

    @SuppressWarnings("unchecked")
    final Mapper<Object, Object> mapper = (Mapper<Object, Object>)fact.construct(mapify.value());

    return new TranslatorRecycles<Map<Object, Object>, Collection<Object>>() {
      @Override
      public Map<Object, Object> loadInto(Collection<Object> node, LoadContext ctx, Path path, Map<Object, Object> map) throws SkipException {
        if (node == null)
View Full Code Here


      throw new IllegalStateException("Embedded Map keys must be of type String/Enum/Key<?> or field must specify @Stringify");

    final ObjectifyFactory fact = ctx.getFactory();

    @SuppressWarnings("unchecked")
    final Stringifier<Object> stringifier = (Stringifier<Object>)fact.construct(stringifierClass);
    if (stringifier instanceof InitializeStringifier)
      ((InitializeStringifier)stringifier).init(fact, keyType);

    Type componentType = GenericUtils.getMapValueType(tk.getType());
    final Translator<Object, Object> componentTranslator = fact.getTranslators().get(new TypeKey<>(componentType, tk), ctx, 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.