Examples of runPostWork()


Examples of com.getperka.flatpack.ext.DeserializationContext.runPostWork()

      visitors.visit(reader, e2);

      // Check referential integrity
      assertSame(e2, employeeCodex.read(new JsonPrimitive(e2.getUuid().toString()), d));
    } finally {
      d.runPostWork();
      closeContext();
    }

    // Verify callbacks called
    assertTrue(e2.employeePostUnpack);
View Full Code Here

Examples of com.getperka.flatpack.ext.DeserializationContext.runPostWork()

          ((PersistenceAware) entity).markPersistent();
        }
      }
    }

    context.runPostWork();
    context.close();

    return toReturn;
  }
}
View Full Code Here

Examples of com.getperka.flatpack.ext.SerializationContext.runPostWork()

    packScope.enter().withEntity(entity).withJsonWriter(json);
    try {
      SerializationContext context = contexts.get();
      doPack(entity, context);
      toReturn = json.get();
      context.runPostWork();
      context.close();
    } finally {
      packScope.exit();
    }
    return toReturn;
View Full Code Here

Examples of com.getperka.flatpack.ext.SerializationContext.runPostWork()

    packScope.enter().withEntity(entity).withJsonWriter(json);
    try {
      SerializationContext context = contexts.get();
      doPack(entity, context);
      context.runPostWork();
      context.close();
    } finally {
      packScope.exit();
    }
  }
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.