removed commented-out code

This commit is contained in:
Konstantinos Spyrou 2024-11-14 15:46:25 +02:00
parent 829f5fa392
commit 081bb887f3
1 changed files with 4 additions and 35 deletions

View File

@ -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.ServiceLocator;
import gr.uoa.di.driver.util.StaticServiceLocator; import gr.uoa.di.driver.util.StaticServiceLocator;
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
@ -15,21 +17,14 @@ import org.springframework.context.annotation.Configuration;
@ComponentScan(basePackages = {"org.eurocris.openaire.cris.validator.service"}) @ComponentScan(basePackages = {"org.eurocris.openaire.cris.validator.service"})
public class Config { public class Config {
private static final Logger logger = LoggerFactory.getLogger(Config.class);
@Value("${services.provide.iSLookUpService.url}") @Value("${services.provide.iSLookUpService.url}")
private String lookupURL; private String lookupURL;
@Value("${services.provide.validatorService.url}") @Value("${services.provide.validatorService.url}")
private String validatorUrl; private String validatorUrl;
// @Bean(name = "vocabularyLoader")
// public VocabularyLoader createVocabularyLoader() throws Exception {
// ISVocabularyLoader loader = new ISVocabularyLoader();
//
// loader.setLookUp(createVocabularyLookUp());
//
// return loader;
// }
@Bean("validatorServiceLocator") @Bean("validatorServiceLocator")
public ServiceLocator<ValidatorService> createValidatorServiceLocator() { public ServiceLocator<ValidatorService> createValidatorServiceLocator() {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
@ -47,30 +42,4 @@ public class Config {
return locator; return locator;
} }
// // @Bean(name="vocabularyLookUp")
// private ISLookUp<Vocabulary> createVocabularyLookUp() throws Exception {
// ISLookUpImpl<Vocabulary> lookUp = new ISLookUpImpl<>();
//
// lookUp.setLookupLocator(createIsLookupServiceLocator());
// lookUp.setConverter(new VocabularyXmlConverter());
//
// return lookUp;
// }
// private ServiceLocator<ISLookUpService> 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<ISLookUpService> locator = new StaticServiceLocator<>();
// locator.setService(service);
//
// return locator;
// }
} }