mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[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:
@@ -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
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user