/** * @deprecated since 0.5.0-rc.1 (added in 0.5.0-M2); use {@link #addChild(Map, Class)} */ protected final <T extends Entity> T createChild(Map<?,?> config, Class<T> type) { return addChild(config, type); }
/** * @deprecated since 0.5.0-rc.1 (added in 0.5.0-M2); use {@link #addChild(EntitySpec)}, * for consistency with {@link AbstractEntity#addChild(EntitySpec)}. */ protected final <T extends Entity> T createChild(EntitySpec<T> spec) { return addChild(spec); }
/** * Adds the given entity as a child of the application being built. */ protected final <T extends Entity> T addChild(EntitySpec<T> spec) { checkDuringManage(); return addChild(createEntity(spec)); }
protected final <T extends Entity> T addChild(Map<?,?> config, Class<T> type) { checkDuringManage(); EntitySpec<T> spec = EntitySpec.create(type).configure(config); return addChild(createEntity(spec)); }