Search in sources :

Example 1 with ArtifactScopedTypeResolver

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;
}
Also used : ArtifactScopedTypeResolver(com.buschmais.jqassistant.plugin.java.api.scanner.ArtifactScopedTypeResolver) ScannerContext(com.buschmais.jqassistant.core.scanner.api.ScannerContext)

Aggregations

ScannerContext (com.buschmais.jqassistant.core.scanner.api.ScannerContext)1 ArtifactScopedTypeResolver (com.buschmais.jqassistant.plugin.java.api.scanner.ArtifactScopedTypeResolver)1