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

com.buschmais.jqassistant.plugin.common.impl.scanner.DirectoryScannerPlugin Maven / Gradle / Ivy

The newest version!
package com.buschmais.jqassistant.plugin.common.impl.scanner;

import java.io.File;

import com.buschmais.jqassistant.core.scanner.api.DefaultScope;
import com.buschmais.jqassistant.core.scanner.api.ScannerContext;
import com.buschmais.jqassistant.core.scanner.api.Scope;
import com.buschmais.jqassistant.plugin.common.api.model.DirectoryDescriptor;
import com.buschmais.jqassistant.plugin.common.api.scanner.AbstractDirectoryScannerPlugin;

public class DirectoryScannerPlugin
        extends AbstractDirectoryScannerPlugin {

    @Override
    protected Scope getRequiredScope() {
        return DefaultScope.NONE;
    }

    @Override
    protected DirectoryDescriptor getContainerDescriptor(File container, ScannerContext scannerContext) {
        return scannerContext.getStore().create(DirectoryDescriptor.class);
    }

    @Override
    protected void enterContainer(File directory, DirectoryDescriptor directoryDescriptor, ScannerContext scannerContext) {
    }

    @Override
    protected void leaveContainer(File directory, DirectoryDescriptor directoryDescriptor, ScannerContext scannerContext) {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy