Revision 55888
Added by Claudio Atzori almost 5 years ago
IndexLightUIClient.java | ||
---|---|---|
6 | 6 |
import java.util.List; |
7 | 7 |
import java.util.Map; |
8 | 8 |
|
9 |
import eu.dnetlib.functionality.index.client.IndexClientFactory; |
|
9 | 10 |
import org.apache.commons.logging.Log; |
10 | 11 |
import org.apache.commons.logging.LogFactory; |
11 | 12 |
import org.dom4j.Document; |
... | ... | |
21 | 22 |
import eu.dnetlib.enabling.resultset.rmi.ResultSetException; |
22 | 23 |
import eu.dnetlib.functionality.index.client.IndexClient; |
23 | 24 |
import eu.dnetlib.functionality.index.client.IndexClientException; |
24 |
import eu.dnetlib.functionality.index.client.ResolvingIndexClientFactory; |
|
25 | 25 |
import eu.dnetlib.functionality.index.client.response.BrowseEntry; |
26 | 26 |
import eu.dnetlib.functionality.index.client.response.BrowseValueEntry; |
27 | 27 |
import eu.dnetlib.functionality.index.client.response.LookupResponse; |
... | ... | |
32 | 32 |
public class IndexLightUIClient { |
33 | 33 |
|
34 | 34 |
@Autowired |
35 |
private ResolvingIndexClientFactory indexClientFactory;
|
|
35 |
private IndexClientFactory indexClientFactory; |
|
36 | 36 |
|
37 | 37 |
private Map<String, IndexClient> indexClientMap; |
38 | 38 |
|
... | ... | |
184 | 184 |
indexClientMap = new HashMap<String, IndexClient>(); |
185 | 185 |
} |
186 | 186 |
if (indexClientMap.containsKey(configuration.getBackendId())) return indexClientMap.get(configuration.getBackendId()); |
187 |
IndexClient index = indexClientFactory.getClient(configuration.getFormat(), configuration.getLayout(), configuration.getInterpretation(), |
|
188 |
configuration.getBackendId());
|
|
187 |
|
|
188 |
final IndexClient index = indexClientFactory.getClient(configuration.getFormat(), configuration.getLayout(), configuration.getInterpretation());
|
|
189 | 189 |
indexClientMap.put(configuration.getBackendId(), index); |
190 | 190 |
|
191 | 191 |
return index; |
Also available in: Unified diff
updated deps