Preloading reports error in eclipse
This commit is contained in:
Родитель
66c0b69c45
Коммит
c842158276
|
@ -18,7 +18,7 @@ import com.microsoft.azure.toolkit.lib.legacy.function.configurations.Retry;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.reflections.Reflections;
|
||||
import org.reflections.scanners.MethodAnnotationsScanner;
|
||||
import org.reflections.scanners.Scanners;
|
||||
import org.reflections.util.ConfigurationBuilder;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
@ -47,8 +47,8 @@ public class AnnotationHandlerImpl implements AnnotationHandler {
|
|||
return new Reflections(
|
||||
new ConfigurationBuilder()
|
||||
.addUrls(urls)
|
||||
.setScanners(new MethodAnnotationsScanner())
|
||||
.addClassLoader(getClassLoader(urls)))
|
||||
.setScanners(Scanners.MethodsAnnotated)
|
||||
.addClassLoaders(getClassLoader(urls)))
|
||||
.getMethodsAnnotatedWith(FunctionName.class);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import com.microsoft.azure.toolkit.lib.Azure;
|
|||
import com.microsoft.azure.toolkit.lib.AzureService;
|
||||
import lombok.extern.java.Log;
|
||||
import org.reflections.Reflections;
|
||||
import org.reflections.scanners.MethodAnnotationsScanner;
|
||||
import org.reflections.scanners.Scanners;
|
||||
import org.reflections.util.ConfigurationBuilder;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
@ -90,7 +90,7 @@ public class Preloader {
|
|||
private static Set<Method> getPreloadingMethods() {
|
||||
final ConfigurationBuilder configuration = new ConfigurationBuilder()
|
||||
.forPackages("com.microsoft.azure.toolkit", "com.microsoft.azuretools")
|
||||
.setScanners(new MethodAnnotationsScanner());
|
||||
.setScanners(Scanners.MethodsAnnotated);
|
||||
final Reflections reflections = new Reflections(configuration);
|
||||
return reflections.getMethodsAnnotatedWith(Preload.class);
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
<google.jsr305.version>3.0.2</google.jsr305.version>
|
||||
<free.port.finder.version>1.1.1</free.port.finder.version>
|
||||
<jjwt.version>0.9.1</jjwt.version>
|
||||
<reflections.version>0.9.12</reflections.version>
|
||||
<reflections.version>0.10.1</reflections.version>
|
||||
<reactor.netty.version>1.0.6</reactor.netty.version>
|
||||
<azure.core-http-netty.version>1.9.2</azure.core-http-netty.version>
|
||||
<nimbusds.oauth2.oidc.sdk.version>9.15</nimbusds.oauth2.oidc.sdk.version>
|
||||
|
|
Загрузка…
Ссылка в новой задаче