summaryrefslogtreecommitdiff
path: root/src/main/java/dev/dnpm/config/PluginConfiguration.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dev/dnpm/config/PluginConfiguration.java')
-rw-r--r--src/main/java/dev/dnpm/config/PluginConfiguration.java112
1 files changed, 0 insertions, 112 deletions
diff --git a/src/main/java/dev/dnpm/config/PluginConfiguration.java b/src/main/java/dev/dnpm/config/PluginConfiguration.java
deleted file mode 100644
index 4787528..0000000
--- a/src/main/java/dev/dnpm/config/PluginConfiguration.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * This file is part of onkostar-plugin-dnpm
- *
- * Copyright (c) 2025 the original author or authors.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-package dev.dnpm.config;
-
-import dev.dnpm.database.SettingsRepository;
-import dev.dnpm.services.*;
-import dev.dnpm.services.consent.ConsentManagerServiceFactory;
-import dev.dnpm.services.molekulargenetik.MolekulargenetikFormService;
-import dev.dnpm.services.molekulargenetik.OsMolekulargenetikFormService;
-import dev.dnpm.services.mtb.DefaultMtbService;
-import dev.dnpm.services.mtb.MtbService;
-import dev.dnpm.services.strahlentherapie.DefaultStrahlentherapieService;
-import dev.dnpm.services.strahlentherapie.StrahlentherapieService;
-import dev.dnpm.services.systemtherapie.DefaultSystemtherapieService;
-import dev.dnpm.services.systemtherapie.SystemtherapieService;
-import dev.dnpm.services.therapieplan.TherapieplanServiceFactory;
-import de.itc.onkostar.api.IOnkostarApi;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
-
-import javax.sql.DataSource;
-
-/**
- * Dynamische Konfiguration des Plugins basierend auf Onkostar-Einstellungen
- *
- * @since 0.0.2
- */
-@Configuration
-@ComponentScan(basePackages = { "dev.dnpm.analyzer", "dev.dnpm.security" })
-@EnableJpaRepositories(basePackages = "dev.dnpm.database")
-public class PluginConfiguration {
-
- @Bean
- public FormService formService(final DataSource dataSource) {
- return new DefaultFormService(dataSource);
- }
-
- @Bean
- public StudienService studienService(final DataSource dataSource) {
- return new DefaultStudienService(dataSource);
- }
-
- @Bean
- public SettingsService settingsService(final SettingsRepository settingsRepository) {
- return new SettingsService(settingsRepository);
- }
-
- @Bean
- public MtbService mtbService(final IOnkostarApi onkostarApi) {
- return new DefaultMtbService(onkostarApi);
- }
-
- @Bean
- public SystemtherapieService systemtherapieService(
- final IOnkostarApi onkostarApi,
- final SettingsService settingsService
- ) {
- return new DefaultSystemtherapieService(onkostarApi, settingsService);
- }
-
- @Bean
- public StrahlentherapieService strahlentherapieService(
- final IOnkostarApi onkostarApi,
- final SettingsService settingsService
- ) {
- return new DefaultStrahlentherapieService(onkostarApi, settingsService);
- }
-
- @Bean
- public ConsentManagerServiceFactory consentManagerServiceFactory(final IOnkostarApi onkostarApi) {
- return new ConsentManagerServiceFactory(onkostarApi);
- }
-
- @Bean
- public TherapieplanServiceFactory therapieplanServiceFactory(
- final IOnkostarApi onkostarApi,
- final SettingsService settingsService,
- final FormService formService
- ) {
- return new TherapieplanServiceFactory(onkostarApi, settingsService, formService);
- }
-
- @Bean
- public MolekulargenetikFormService molekulargenetikFormService() {
- return new OsMolekulargenetikFormService();
- }
-
-}