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

com.fastchar.extjs.accepter.FastExtEntityAccepter Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
package com.fastchar.extjs.accepter;

import com.fastchar.core.FastEngine;
import com.fastchar.extjs.FastExtConfig;
import com.fastchar.extjs.core.FastExtEntity;
import com.fastchar.interfaces.IFastScannerAccepter;

import java.io.File;

@SuppressWarnings("unchecked")
public class FastExtEntityAccepter implements IFastScannerAccepter {
    @Override
    public boolean onScannerClass(FastEngine engine, Class scannedClass) throws Exception {
        if (FastExtEntity.class.isAssignableFrom(scannedClass)) {
            FastExtConfig.getInstance().getExtEntities().addEntity((Class) scannedClass);
            return true;
        }
        return false;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy