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

com.fastchar.accepter.FastActionScannerAccepter Maven / Gradle / Ivy

package com.fastchar.accepter;

import com.fastchar.core.*;
import com.fastchar.interfaces.IFastScannerAccepter;

import java.io.File;

@SuppressWarnings("unchecked")
public class FastActionScannerAccepter implements IFastScannerAccepter {
    @Override
    public boolean onScannerClass(FastEngine engine, Class scannedClass) throws Exception {
        if (FastAction.class.isAssignableFrom(scannedClass)) {
            engine.getActions().add((Class) scannedClass);
        }
        return true;
    }

    @Override
    public boolean onScannerFile(FastEngine engine, File file) throws Exception {
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy