From 081bb887f3b7763b87d9072b3bfdc6d58aa54bf4 Mon Sep 17 00:00:00 2001 From: Konstantinos Spyrou Date: Thu, 14 Nov 2024 15:46:25 +0200 Subject: [PATCH] removed commented-out code --- .../dnetlib/repo/manager/config/Config.java | 39 ++----------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/src/main/java/eu/dnetlib/repo/manager/config/Config.java b/src/main/java/eu/dnetlib/repo/manager/config/Config.java index 8e84320..be7aaa7 100644 --- a/src/main/java/eu/dnetlib/repo/manager/config/Config.java +++ b/src/main/java/eu/dnetlib/repo/manager/config/Config.java @@ -6,6 +6,8 @@ import eu.dnetlib.repo.manager.clients.ws.validator.ValidatorWebServiceClient; import gr.uoa.di.driver.util.ServiceLocator; import gr.uoa.di.driver.util.StaticServiceLocator; import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; @@ -15,21 +17,14 @@ import org.springframework.context.annotation.Configuration; @ComponentScan(basePackages = {"org.eurocris.openaire.cris.validator.service"}) public class Config { + private static final Logger logger = LoggerFactory.getLogger(Config.class); + @Value("${services.provide.iSLookUpService.url}") private String lookupURL; @Value("${services.provide.validatorService.url}") private String validatorUrl; -// @Bean(name = "vocabularyLoader") -// public VocabularyLoader createVocabularyLoader() throws Exception { -// ISVocabularyLoader loader = new ISVocabularyLoader(); -// -// loader.setLookUp(createVocabularyLookUp()); -// -// return loader; -// } - @Bean("validatorServiceLocator") public ServiceLocator createValidatorServiceLocator() { JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); @@ -47,30 +42,4 @@ public class Config { return locator; } - -// // @Bean(name="vocabularyLookUp") -// private ISLookUp createVocabularyLookUp() throws Exception { -// ISLookUpImpl lookUp = new ISLookUpImpl<>(); -// -// lookUp.setLookupLocator(createIsLookupServiceLocator()); -// lookUp.setConverter(new VocabularyXmlConverter()); -// -// return lookUp; -// } - -// private ServiceLocator createIsLookupServiceLocator() throws Exception { -// JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); -// -// factory.setServiceClass(eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService.class); -// factory.setAddress(lookupURL); -// eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService client = (eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService) factory.create(); -// -// ISLookUpClient service = new ISLookUpClient(); -// service.setWebService(client); -// -// StaticServiceLocator locator = new StaticServiceLocator<>(); -// locator.setService(service); -// -// return locator; -// } }