use of com.buschmais.jqassistant.plugin.java.api.scanner.ArtifactScopedTypeResolver in project jqa-java-plugin by buschmais.
the class AbstractJavaPluginIT method execute.
protected List<? extends FileDescriptor> execute(JavaArtifactFileDescriptor artifact, ScanClassPathOperation operation, Scanner scanner) {
ScannerContext context = scanner.getContext();
context.push(JavaArtifactFileDescriptor.class, artifact);
context.push(TypeResolver.class, new ArtifactScopedTypeResolver(artifact));
List<? extends FileDescriptor> descriptors = operation.scan(artifact, scanner);
context.pop(TypeResolver.class);
context.pop(JavaArtifactFileDescriptor.class);
return descriptors;
}
Aggregations