com.fastchar.extjs.accepter.FastExtEntityAccepter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar-extjs Show documentation
Show all versions of fastchar-extjs Show documentation
FastChar-ExtJs is a Java Web framework that uses extjs libraries.
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 extends FastExtEntity>) scannedClass);
return true;
}
return false;
}
@Override
public boolean onScannerFile(FastEngine engine, File file) throws Exception {
return false;
}
}