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

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

package com.fastchar.accepter;

import com.fastchar.core.FastEngine;
import com.fastchar.core.FastEntity;
import com.fastchar.interfaces.IFastScannerAccepter;

import java.io.File;
import java.lang.reflect.Modifier;

@SuppressWarnings("unchecked")
public class FastEntityScannerAccepter implements IFastScannerAccepter {

    @Override
    public boolean onScannerClass(FastEngine engine, Class scannedClass) throws Exception {
        if (FastEntity.class.isAssignableFrom(scannedClass)) {
            engine.getEntities().addEntity((Class) scannedClass);
        }
        return true;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy