Search in sources :

Example 1 with ProjectStructureExtensionProvider

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();
}
Also used : DefaultProjectStructureExtensionProvider(org.finos.legend.sdlc.server.project.extension.DefaultProjectStructureExtensionProvider) ProjectStructureExtensionProvider(org.finos.legend.sdlc.server.project.extension.ProjectStructureExtensionProvider) VoidProjectStructureExtensionProvider(org.finos.legend.sdlc.server.project.extension.VoidProjectStructureExtensionProvider) VoidProjectStructureExtensionProvider(org.finos.legend.sdlc.server.project.extension.VoidProjectStructureExtensionProvider) ProjectStructureExtension(org.finos.legend.sdlc.server.project.extension.ProjectStructureExtension) ProjectStructureConfiguration(org.finos.legend.sdlc.server.project.config.ProjectStructureConfiguration)

Aggregations

ProjectStructureConfiguration (org.finos.legend.sdlc.server.project.config.ProjectStructureConfiguration)1 DefaultProjectStructureExtensionProvider (org.finos.legend.sdlc.server.project.extension.DefaultProjectStructureExtensionProvider)1 ProjectStructureExtension (org.finos.legend.sdlc.server.project.extension.ProjectStructureExtension)1 ProjectStructureExtensionProvider (org.finos.legend.sdlc.server.project.extension.ProjectStructureExtensionProvider)1 VoidProjectStructureExtensionProvider (org.finos.legend.sdlc.server.project.extension.VoidProjectStructureExtensionProvider)1