[DS-2462] Add testability and starter IT suite to SolrLoggerServiceImpl.

Move SpiderDetectorService javadocs from implementation to interface.
Usual documentation cleanups and minor reformatting.
This commit is contained in:
Mark H. Wood
2020-08-07 17:19:02 -04:00
parent b7c2322a47
commit 5c17a9bea7
2 changed files with 5 additions and 1 deletions

View File

@@ -141,6 +141,8 @@ public class SolrLoggerServiceImpl implements SolrLoggerService, InitializingBea
protected ConfigurationService configurationService;
@Autowired(required = true)
protected ClientInfoService clientInfoService;
@Autowired(required = true)
protected SolrClientFactory solrClientFactory;
@Autowired
protected SolrStatisticsCore solrStatisticsCore;
@Autowired

View File

@@ -131,16 +131,18 @@ public class SolrLoggerServiceImplIT
System.out.println("markRobots");
EmbeddedSolrClientFactory clientFactory = new EmbeddedSolrClientFactory();
ContentServiceFactory csf = ContentServiceFactory.getInstance();
DSpace dspace = new DSpace();
SolrLoggerServiceImpl instance = new SolrLoggerServiceImpl();
ContentServiceFactory csf = ContentServiceFactory.getInstance();
instance.bitstreamService = csf.getBitstreamService();
instance.contentServiceFactory = csf;
instance.configurationService = DSpaceServicesFactory.getInstance().getConfigurationService();
instance.clientInfoService = CoreServiceFactory.getInstance().getClientInfoService();
instance.geoIpService = dspace.getSingletonService(GeoIpService.class);
instance.solrStatisticsCore = dspace.getSingletonService(SolrStatisticsCore.class);
instance.solrClientFactory = clientFactory;
instance.afterPropertiesSet();
// Create objects to view.