use of org.kie.workbench.common.forms.adf.service.building.FormGenerationResourcesProvider in project kie-wb-common by kiegroup.
the class ClientFormGenerator method initialize.
@PostConstruct
public void initialize() {
SyncBeanManager beanManager = IOC.getBeanManager();
Collection<SyncBeanDef<FormElementProcessor>> processors = beanManager.lookupBeans(FormElementProcessor.class);
processors.forEach(processorDef -> {
registerProcessor(processorDef.getInstance());
});
Collection<SyncBeanDef<FormGenerationResourcesProvider>> builderDefs = beanManager.lookupBeans(FormGenerationResourcesProvider.class);
builderDefs.forEach(builderDef -> {
FormGenerationResourcesProvider instance = builderDef.getInstance();
registerResources(instance);
beanManager.destroyBean(instance);
});
}
Aggregations