Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
ServiceRegistrationManager.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.enabling.tools.registration; |
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 |
import javax.annotation.Resource; |
|
5 | 4 |
import javax.xml.ws.Endpoint; |
6 | 5 |
|
7 | 6 |
import eu.dnetlib.enabling.locators.UniqueServiceLocator; |
... | ... | |
11 | 10 |
import eu.dnetlib.rmi.enabling.ISLookUpService; |
12 | 11 |
import org.apache.commons.logging.Log; |
13 | 12 |
import org.apache.commons.logging.LogFactory; |
13 |
import org.springframework.beans.factory.annotation.Autowired; |
|
14 | 14 |
import org.springframework.beans.factory.annotation.Required; |
15 | 15 |
|
16 | 16 |
public class ServiceRegistrationManager { |
17 | 17 |
|
18 | 18 |
private static final Log log = LogFactory.getLog(ServiceRegistrationManager.class); |
19 | 19 |
|
20 |
@Resource
|
|
20 |
@Autowired
|
|
21 | 21 |
private UniqueServiceLocator serviceLocator; |
22 | 22 |
|
23 | 23 |
private ServiceRegistrator registrator; |
24 | 24 |
|
25 | 25 |
private boolean disabled = false; |
26 | 26 |
|
27 |
@Resource
|
|
27 |
@Autowired
|
|
28 | 28 |
private List<Endpoint> services; |
29 | 29 |
|
30 | 30 |
public void registerAllServices() { |
Also available in: Unified diff
Chnaged Resource to Autowired