Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
ServiceTools.java | ||
---|---|---|
3 | 3 |
import java.util.HashMap; |
4 | 4 |
import java.util.List; |
5 | 5 |
import java.util.Map; |
6 |
import javax.annotation.Resource; |
|
7 | 6 |
|
8 | 7 |
import com.google.common.collect.Iterables; |
9 | 8 |
import com.google.common.collect.Lists; |
... | ... | |
14 | 13 |
import org.apache.commons.lang3.StringUtils; |
15 | 14 |
import org.apache.commons.logging.Log; |
16 | 15 |
import org.apache.commons.logging.LogFactory; |
16 |
import org.springframework.beans.factory.annotation.Autowired; |
|
17 | 17 |
|
18 | 18 |
public class ServiceTools { |
19 | 19 |
|
20 | 20 |
private static final Log log = LogFactory.getLog(ServiceTools.class); |
21 | 21 |
|
22 |
@Resource
|
|
22 |
@Autowired
|
|
23 | 23 |
private UniqueServiceLocator serviceLocator; |
24 | 24 |
|
25 |
@Resource
|
|
25 |
@Autowired
|
|
26 | 26 |
private MetadataReferenceFactory mdFactory; |
27 | 27 |
|
28 | 28 |
public List<MetadataReference> listMDRefs() throws IndexClientException { |
Also available in: Unified diff
Chnaged Resource to Autowired