Search in sources :

Example 1 with MorphDefinitionProvider

use of org.kie.workbench.common.stunner.core.definition.morph.MorphDefinitionProvider in project kie-wb-common by kiegroup.

the class ClientBindableMorphAdapter method init.

@PostConstruct
@SuppressWarnings("unchecked")
public void init() {
    // Morph definitions.
    Collection<SyncBeanDef<MorphDefinitionProvider>> beanMorphAdapters = beanManager.lookupBeans(MorphDefinitionProvider.class);
    for (SyncBeanDef<MorphDefinitionProvider> morphAdapter : beanMorphAdapters) {
        MorphDefinitionProvider provider = morphAdapter.getInstance();
        morphDefinitions.addAll(provider.getMorphDefinitions());
    }
}
Also used : MorphDefinitionProvider(org.kie.workbench.common.stunner.core.definition.morph.MorphDefinitionProvider) SyncBeanDef(org.jboss.errai.ioc.client.container.SyncBeanDef) PostConstruct(javax.annotation.PostConstruct)

Aggregations

PostConstruct (javax.annotation.PostConstruct)1 SyncBeanDef (org.jboss.errai.ioc.client.container.SyncBeanDef)1 MorphDefinitionProvider (org.kie.workbench.common.stunner.core.definition.morph.MorphDefinitionProvider)1