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

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

Go to download

FastChar is Web+ORM Framework in Java Copyright (C) http://www.fastchar.com All rights reserved.

The newest version!
package com.fastchar.accepter;

import com.fastchar.annotation.AFastOverride;
import com.fastchar.core.FastEngine;
import com.fastchar.interfaces.IFastScannerAccepter;

import java.io.File;

public class FastOverrideScannerAccepter implements IFastScannerAccepter {
    @Override
    public boolean onScannerClass(FastEngine engine, Class scannedClass) throws Exception {
        if (scannedClass.isAnnotationPresent(AFastOverride.class)) {
            engine.getOverrides().add(scannedClass);
            return true;
        }
        return false;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy