use of org.jboss.pnc.common.json.moduleconfig.UIModuleConfig in project pnc by project-ncl.
the class UiConfigRestBuilder method build.
public static UiConfigRest build(Configuration configuration) throws ConfigurationParseException {
GlobalModuleGroup globalConfig = configuration.getGlobalConfig();
UIModuleConfig uiModuleConfig = configuration.getModuleConfig(new PncConfigProvider<>(UIModuleConfig.class));
ScmModuleConfig scmModuleConfig = configuration.getModuleConfig(new PncConfigProvider<>(ScmModuleConfig.class));
return new UiConfigRest(globalConfig, uiModuleConfig, scmModuleConfig.getInternalScmAuthority());
}
Aggregations