package com.infoDiscover.adminCenter.logic.common;

import com.infoDiscover.adminCenter.logic.component.infoDiscoverSpaceManagement.InfoDiscoverSpaceOperationUtil;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by wangychu on 4/27/17.
 */
public class ApplicationResourceInitializer implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        InfoDiscoverSpaceOperationUtil.refreshItemAliasNameCache();
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        InfoDiscoverSpaceOperationUtil.clearItemAliasNameCache();
    }
}

@@ -453,32 +453,102 @@
 ContextEvent) %7B%0A
+        InfoDiscoverSpaceOperationUtil.initMetaConfigDiscoverSpace();%0A
         InfoDisc

fix application startup database init defect