|
@@ -30,12 +30,10 @@ import javax.servlet.http.HttpServlet;
|
|
|
import org.apache.commons.lang.SystemUtils;
|
|
import org.apache.commons.lang.SystemUtils;
|
|
|
import org.apache.commons.lang3.ArchUtils;
|
|
import org.apache.commons.lang3.ArchUtils;
|
|
|
import org.joda.time.DateTime;
|
|
import org.joda.time.DateTime;
|
|
|
-import org.maxkey.cache.CacheFactory;
|
|
|
|
|
import org.maxkey.configuration.ApplicationConfig;
|
|
import org.maxkey.configuration.ApplicationConfig;
|
|
|
import org.maxkey.util.PathUtils;
|
|
import org.maxkey.util.PathUtils;
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
-import org.springframework.beans.BeansException;
|
|
|
|
|
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
|
|
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
|
|
|
import org.springframework.context.ApplicationContext;
|
|
import org.springframework.context.ApplicationContext;
|
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
@@ -80,9 +78,6 @@ public class InitializeContext extends HttpServlet {
|
|
|
// List DatabaseMetaData Variables
|
|
// List DatabaseMetaData Variables
|
|
|
listDataBaseVariables();
|
|
listDataBaseVariables();
|
|
|
|
|
|
|
|
- // load caches
|
|
|
|
|
- loadCaches();
|
|
|
|
|
-
|
|
|
|
|
// Show License
|
|
// Show License
|
|
|
showLicense();
|
|
showLicense();
|
|
|
}
|
|
}
|
|
@@ -108,26 +103,6 @@ public class InitializeContext extends HttpServlet {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * loadCaches.
|
|
|
|
|
- */
|
|
|
|
|
- public void loadCaches() {
|
|
|
|
|
- _logger.info("-----------------------------------------------------------");
|
|
|
|
|
- _logger.info("Load Caches ");
|
|
|
|
|
-
|
|
|
|
|
- try {
|
|
|
|
|
- if (applicationContext.containsBean("cacheFactory")) {
|
|
|
|
|
- CacheFactory cacheFactory =
|
|
|
|
|
- applicationContext.getBean("cacheFactory", CacheFactory.class);
|
|
|
|
|
- cacheFactory.start();
|
|
|
|
|
- }
|
|
|
|
|
- } catch (BeansException e) {
|
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
- }
|
|
|
|
|
- _logger.info("-----------------------------------------------------------");
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
* listDataBaseVariables.
|
|
* listDataBaseVariables.
|
|
|
*/
|
|
*/
|
|
|
public void listDataBaseVariables() {
|
|
public void listDataBaseVariables() {
|