com.fastchar.accepter.FastActionScannerAccepter Maven / Gradle / Ivy
package com.fastchar.accepter;
import com.fastchar.core.*;
import com.fastchar.interfaces.IFastScannerAccepter;
import java.io.File;
/**
* FastAction类扫码接收器,自动注册FastAction类
*/
@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 extends FastAction>) scannedClass);
}
return true;
}
@Override
public boolean onScannerFile(FastEngine engine, File file) throws Exception {
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy