1 |
29686
|
sandro.lab
|
package eu.dnetlib.functionality.index.client;
|
2 |
|
|
|
3 |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
4 |
|
|
|
5 |
|
|
import eu.dnetlib.functionality.index.utils.ServiceTools;
|
6 |
|
|
|
7 |
|
|
/**
|
8 |
|
|
* The Class AbstractIndexClientFactory.
|
9 |
|
|
*/
|
10 |
|
|
public abstract class AbstractIndexClientFactory implements IndexClientFactory {
|
11 |
|
|
|
12 |
|
|
/** The backend id. */
|
13 |
|
|
private String backendId;
|
14 |
|
|
|
15 |
|
|
@Autowired
|
16 |
|
|
protected ServiceTools isQueryTools;
|
17 |
|
|
|
18 |
|
|
/**
|
19 |
|
|
* Inits the class.
|
20 |
|
|
*/
|
21 |
|
|
public abstract void init() throws IndexClientException;
|
22 |
|
|
|
23 |
|
|
/**
|
24 |
|
|
* {@inheritDoc}
|
25 |
|
|
*
|
26 |
|
|
* @see eu.dnetlib.functionality.index.client.IndexClientFactory#getBackendId()
|
27 |
|
|
*/
|
28 |
|
|
@Override
|
29 |
|
|
public String getBackendId() {
|
30 |
|
|
return backendId;
|
31 |
|
|
}
|
32 |
|
|
|
33 |
|
|
/**
|
34 |
|
|
* Sets the backend id.
|
35 |
|
|
*
|
36 |
|
|
* @param backendId
|
37 |
|
|
* the backend id
|
38 |
|
|
*/
|
39 |
|
|
public void setBackendId(final String backendId) {
|
40 |
|
|
this.backendId = backendId;
|
41 |
|
|
}
|
42 |
|
|
|
43 |
|
|
}
|