Search in sources :

Example 1 with EntityReferenceNameResolver

use of org.finos.waltz.data.EntityReferenceNameResolver in project waltz by khartec.

the class EntityRefHarness method main.

public static void main(String[] args) {
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
    EntityReferenceNameResolver resolver = ctx.getBean(EntityReferenceNameResolver.class);
    List<EntityReference> refs = ListUtilities.newArrayList(EntityReference.mkRef(EntityKind.MEASURABLE, 136), EntityReference.mkRef(EntityKind.MEASURABLE, 138), EntityReference.mkRef(EntityKind.MEASURABLE, -138), EntityReference.mkRef(EntityKind.CHANGE_INITIATIVE, 12));
    List<EntityReference> refs1 = ListUtilities.newArrayList(EntityReference.mkRef(EntityKind.MEASURABLE, 136));
    dump(resolver.resolve(refs));
    dump(resolver.resolve(refs1));
    System.out.println("-- done");
}
Also used : EntityReferenceNameResolver(org.finos.waltz.data.EntityReferenceNameResolver) AnnotationConfigApplicationContext(org.springframework.context.annotation.AnnotationConfigApplicationContext) EntityReference(org.finos.waltz.model.EntityReference)

Aggregations

EntityReferenceNameResolver (org.finos.waltz.data.EntityReferenceNameResolver)1 EntityReference (org.finos.waltz.model.EntityReference)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1