Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
ProfileValidationStrategy.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 | 4 |
|
5 |
import javax.annotation.Resource; |
|
6 |
|
|
7 | 5 |
import eu.dnetlib.enabling.is.registry.schema.ValidationException; |
8 | 6 |
import eu.dnetlib.enabling.tools.OpaqueResource; |
7 |
import org.springframework.beans.factory.annotation.Autowired; |
|
9 | 8 |
|
10 | 9 |
/** |
11 | 10 |
* ProfileValidationStrategy iterates all the profile validators, |
... | ... | |
16 | 15 |
* |
17 | 16 |
*/ |
18 | 17 |
public class ProfileValidationStrategy { |
19 |
|
|
20 |
@Resource
|
|
18 |
|
|
19 |
@Autowired
|
|
21 | 20 |
private List<ProfileValidator> profileValidators; |
22 | 21 |
|
23 | 22 |
public boolean accept(OpaqueResource resource, RegistrationPhase phase) throws ValidationException { |
Also available in: Unified diff
Chnaged Resource to Autowired