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