use of org.finos.legend.sdlc.server.project.extension.ProjectStructureExtensionProvider in project legend-sdlc by finos.
the class AbstractBaseModule method resolveProjectStructureExtensionProvider.
private ProjectStructureExtensionProvider resolveProjectStructureExtensionProvider() {
ProjectStructureConfiguration projectStructureConfiguration = getConfiguration().getProjectStructureConfiguration();
if (projectStructureConfiguration != null) {
ProjectStructureExtensionProvider configuredProvider = projectStructureConfiguration.getProjectStructureExtensionProvider();
if (configuredProvider != null) {
return configuredProvider;
}
List<ProjectStructureExtension> extensions = projectStructureConfiguration.getProjectStructureExtensions();
if ((extensions != null) && !extensions.isEmpty()) {
return DefaultProjectStructureExtensionProvider.fromExtensions(extensions);
}
}
return new VoidProjectStructureExtensionProvider();
}
Aggregations