All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.buschmais.jqassistant.plugin.common.api.scanner.DefaultFileResolver Maven / Gradle / Ivy

package com.buschmais.jqassistant.plugin.common.api.scanner;

import com.buschmais.jqassistant.core.scanner.api.ScannerContext;
import com.buschmais.jqassistant.plugin.common.api.model.FileDescriptor;

/**
 * Default implementation of a file resolver.
 * 
 * Always create a new file descriptor.
 */
public class DefaultFileResolver extends AbstractFileResolver {

    @Override
    public  D require(String requiredPath, String containedPath, Class type, ScannerContext context) {
        return toFileDescriptor(null, type, requiredPath, context);
    }

    @Override
    public  D match(String containedPath, Class type, ScannerContext context) {
        return toFileDescriptor(null, type, containedPath, context);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy