1
|
package eu.dnetlib.utils;
|
2
|
|
3
|
import org.springframework.context.annotation.Condition;
|
4
|
import org.springframework.context.annotation.ConditionContext;
|
5
|
import org.springframework.core.type.AnnotatedTypeMetadata;
|
6
|
|
7
|
public class RemoteInformationServiceCondition implements Condition {
|
8
|
|
9
|
@Override
|
10
|
public boolean matches(final ConditionContext context, final AnnotatedTypeMetadata metadata) {
|
11
|
try {
|
12
|
Class.forName("eu.dnetlib.enabling.is.tools.ISBulkResourceImporter");
|
13
|
return false;
|
14
|
} catch (final ClassNotFoundException e) {
|
15
|
return true;
|
16
|
}
|
17
|
}
|
18
|
|
19
|
}
|