From fb91356b7777dfa5b6088bcc3a48b43924c1c0fd Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Thu, 3 Sep 2026 14:35:10 +0200 Subject: build: apply Spotless plugin (#293) --- .../dnpm/oshelper/config/PluginConfiguration.java | 99 ++++++++++------------ 1 file changed, 46 insertions(+), 53 deletions(-) (limited to 'src/main/java/dev/dnpm/oshelper/config/PluginConfiguration.java') diff --git a/src/main/java/dev/dnpm/oshelper/config/PluginConfiguration.java b/src/main/java/dev/dnpm/oshelper/config/PluginConfiguration.java index bb6619f..3e2ea44 100644 --- a/src/main/java/dev/dnpm/oshelper/config/PluginConfiguration.java +++ b/src/main/java/dev/dnpm/oshelper/config/PluginConfiguration.java @@ -33,13 +33,12 @@ import dev.dnpm.oshelper.services.strahlentherapie.StrahlentherapieService; import dev.dnpm.oshelper.services.systemtherapie.DefaultSystemtherapieService; import dev.dnpm.oshelper.services.systemtherapie.SystemtherapieService; import dev.dnpm.oshelper.services.therapieplan.TherapieplanServiceFactory; +import javax.sql.DataSource; 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 * @@ -50,64 +49,58 @@ import javax.sql.DataSource; @EnableJpaRepositories(basePackages = "dev.dnpm.oshelper.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 FormService formService(final DataSource dataSource) { + return new DefaultFormService(dataSource); + } - @Bean - public SettingsService settingsService(final SettingsRepository settingsRepository) { - return new SettingsService(settingsRepository); - } + @Bean + public StudienService studienService(final DataSource dataSource) { + return new DefaultStudienService(dataSource); + } - @Bean - public SystemtherapieService systemtherapieService( - final IOnkostarApi onkostarApi, - final SettingsService settingsService - ) { - return new DefaultSystemtherapieService(onkostarApi, settingsService); - } + @Bean + public SettingsService settingsService(final SettingsRepository settingsRepository) { + return new SettingsService(settingsRepository); + } - @Bean - public StrahlentherapieService strahlentherapieService( - final IOnkostarApi onkostarApi, - final SettingsService settingsService - ) { - return new DefaultStrahlentherapieService(onkostarApi, settingsService); - } + @Bean + public SystemtherapieService systemtherapieService( + final IOnkostarApi onkostarApi, final SettingsService settingsService) { + return new DefaultSystemtherapieService(onkostarApi, settingsService); + } - @Bean - public ConsentManagerServiceFactory consentManagerServiceFactory(final IOnkostarApi onkostarApi) { - return new ConsentManagerServiceFactory(onkostarApi); - } + @Bean + public StrahlentherapieService strahlentherapieService( + final IOnkostarApi onkostarApi, final SettingsService settingsService) { + return new DefaultStrahlentherapieService(onkostarApi, settingsService); + } - @Bean - public TherapieplanServiceFactory therapieplanServiceFactory( - final IOnkostarApi onkostarApi, - final SettingsService settingsService, - final FormService formService - ) { - return new TherapieplanServiceFactory(onkostarApi, settingsService, formService); - } + @Bean + public ConsentManagerServiceFactory consentManagerServiceFactory(final IOnkostarApi onkostarApi) { + return new ConsentManagerServiceFactory(onkostarApi); + } - @Bean - public MolekulargenetikFormService molekulargenetikFormService() { - return new OsMolekulargenetikFormService(); - } + @Bean + public TherapieplanServiceFactory therapieplanServiceFactory( + final IOnkostarApi onkostarApi, + final SettingsService settingsService, + final FormService formService) { + return new TherapieplanServiceFactory(onkostarApi, settingsService, formService); + } - @Bean - public AgentCodeService csvAgentCodeService() { - return new CsvAgentCodeService(); - } + @Bean + public MolekulargenetikFormService molekulargenetikFormService() { + return new OsMolekulargenetikFormService(); + } - @Bean - public AgentCodeService onkostarAgentCodeService (final DataSource dataSource) { - return new OnkostarAgentCodeService(dataSource); - } + @Bean + public AgentCodeService csvAgentCodeService() { + return new CsvAgentCodeService(); + } + @Bean + public AgentCodeService onkostarAgentCodeService(final DataSource dataSource) { + return new OnkostarAgentCodeService(dataSource); + } } -- cgit v1.2.3