com.fastchar.accepter.FastEntityScannerAccepter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar Show documentation
Show all versions of fastchar Show documentation
FastChar is Web+ORM Framework in Java.
package com.fastchar.accepter;
import com.fastchar.core.FastEngine;
import com.fastchar.core.FastEntity;
import com.fastchar.interfaces.IFastScannerAccepter;
/**
* 实体类接受扫描类
* @author 沈建(Janesen)
*/
@SuppressWarnings("unchecked")
public class FastEntityScannerAccepter implements IFastScannerAccepter {
@Override
public void onScannerClass(FastEngine engine, Class> scannedClass) throws Exception {
if (FastEntity.class.isAssignableFrom(scannedClass)) {
engine.getEntities().addEntity((Class extends FastEntity>>) scannedClass);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy