1 |
41977
|
sandro.lab
|
package eu.dnetlib.index;
|
2 |
28696
|
sandro.lab
|
|
3 |
|
|
import org.springframework.beans.factory.annotation.Required;
|
4 |
|
|
|
5 |
28919
|
claudio.at
|
/**
|
6 |
|
|
* The Class IndexServerDAOMapImpl.
|
7 |
|
|
*/
|
8 |
28696
|
sandro.lab
|
public class IndexServerDAOMapImpl implements IndexServerDAOMap {
|
9 |
|
|
|
10 |
41977
|
sandro.lab
|
/**
|
11 |
|
|
* The index enumerator.
|
12 |
|
|
*/
|
13 |
28696
|
sandro.lab
|
private IndexBackendEnumerator indexEnumerator;
|
14 |
|
|
|
15 |
35066
|
alessia.ba
|
/**
|
16 |
|
|
* {@inheritDoc}
|
17 |
41977
|
sandro.lab
|
*
|
18 |
|
|
* @see eu.dnetlib.functionality.index.IndexServerDAOMap#getIndexServerDAO(String)
|
19 |
28919
|
claudio.at
|
*/
|
20 |
28696
|
sandro.lab
|
@Override
|
21 |
|
|
public IndexServerDAO getIndexServerDAO(final String backendIdentifier) {
|
22 |
28919
|
claudio.at
|
return indexEnumerator.getDescriptor(backendIdentifier);
|
23 |
28696
|
sandro.lab
|
}
|
24 |
|
|
|
25 |
|
|
/**
|
26 |
28919
|
claudio.at
|
* Gets the index enumerator.
|
27 |
41977
|
sandro.lab
|
*
|
28 |
28696
|
sandro.lab
|
* @return the indexEnumerator
|
29 |
|
|
*/
|
30 |
|
|
public IndexBackendEnumerator getIndexEnumerator() {
|
31 |
|
|
return indexEnumerator;
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
/**
|
35 |
28919
|
claudio.at
|
* Sets the index enumerator.
|
36 |
41977
|
sandro.lab
|
*
|
37 |
|
|
* @param indexEnumerator the indexEnumerator to set
|
38 |
28696
|
sandro.lab
|
*/
|
39 |
|
|
@Required
|
40 |
|
|
public void setIndexEnumerator(final IndexBackendEnumerator indexEnumerator) {
|
41 |
|
|
this.indexEnumerator = indexEnumerator;
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
}
|