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

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

There is a newer version: 2.2.2
Show newest version
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>) scannedClass);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy