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

com.fastchar.extjs.observer.FastExtDatabaseObserver 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.observer;

import com.fastchar.core.FastChar;
import com.fastchar.database.info.FastDatabaseInfo;
import com.fastchar.extjs.FastExtConfig;
import com.fastchar.extjs.core.FastExtLayerHelper;

import java.util.ArrayList;
import java.util.List;

public class FastExtDatabaseObserver {

    public void onDatabaseFinish() {
        List layerMaps = new ArrayList<>();
        for (FastDatabaseInfo databaseInfo : FastChar.getDatabases().getAll()) {
            if (!databaseInfo.isFetchDatabaseInfo()) {
                continue;
            }
            layerMaps.addAll(FastExtLayerHelper.buildLayerMap(databaseInfo));
        }
        FastExtConfig.getInstance().setLayerMaps(layerMaps);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy