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