@Test public void testCompile() { AgEntity<Entity> entity = new PojoEntityCompiler(Collections.emptyMap()) .compile(Entity.class, new LazyAgDataMap(compilers)); assertNotNull(entity); assertEquals(1, entity.getIds().size()); assertEquals(1, entity.getAttributes().size()); assertEquals(0, entity.getRelationships().size()); }
@Override public <T> AgEntity<T> compile(Class<T> type, AgDataMap dataMap) { return new LazyAgEntity<>(type, () -> doCompile(type, dataMap)); }
PojoEntityCompiler implements AgEntityCompiler { @Override public <T> AgEntity<T> compile(Class<T> type, AgDataMap dataMap) { return new LazyAgEntity<>(type, () -> doCompile(type, dataMap)); } }
PojoEntityCompiler implements AgEntityCompiler { @Override public <T> AgEntity<T> compile(Class<T> type, AgDataMap dataMap) { return new LazyAgEntity<>(type, () -> doCompile(type, dataMap)); } PojoEntityCompiler(@Inject Map<String, AgEntityOverlay> entityOverlays); }
PojoEntityCompiler implements AgEntityCompiler { @Override public <T> AgEntity<T> compile(Class<T> type, AgDataMap dataMap) { return new LazyAgEntity<>(type, () -> doCompile(type, dataMap)); } PojoEntityCompiler(@Inject Map<String, AgEntityOverlay> entityOverlays); @Override AgEntity<T> compile(Class<T> type, AgDataMap dataMap); }
PojoEntityCompiler implements AgEntityCompiler { @Override public <T> AgEntity<T> compile(Class<T> type, AgDataMap dataMap) { return new LazyAgEntity<>(type, () -> doCompile(type, dataMap)); } PojoEntityCompiler(@Inject Map<String, AgEntityOverlay> entityOverlays); @Override AgEntity<T> compile(Class<T> type, AgDataMap dataMap);  }