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

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

Go to download

FastChar-ExtJs is a Java Web framework that uses extjs libraries.Quickly build a background management system

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.interfaces.IFastScannerAccepter;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class FastExtHeadHtmlAccepter implements IFastScannerAccepter {
    public static List HEAD_HTML_PATH_LIST = new ArrayList<>();

    @Override
    public void onScannerClass(FastEngine engine, Class scannedClass) throws Exception {
    }

    @Override
    public void onScannerFile(FastEngine engine, File file) throws Exception {
        if (file.getName().toLowerCase().startsWith(FastExtConfig.getInstance().getHeadPrefix())
                && file.getName().toLowerCase().endsWith(".html")) {
            HEAD_HTML_PATH_LIST.add(file.getAbsolutePath());
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy