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

org.teasoft.beex.spi.ExtPreLoadInit Maven / Gradle / Ivy

/*
 * Copyright 2016-2023 the original author.All rights reserved.
 * Kingstar([email protected])
 * The license,see the LICENSE file.
 */

package org.teasoft.beex.spi;

import org.teasoft.bee.spi.PreLoad;
import org.teasoft.beex.mongodb.MongodbCommImpl;
import org.teasoft.beex.mongodb.MongodbSqlLib;
import org.teasoft.beex.type.JsonDefaultHandler;
import org.teasoft.honey.osql.core.Logger;
import org.teasoft.honey.osql.mongodb.MongodbBeeSqlRegister;
import org.teasoft.honey.osql.mongodb.MongodbCommRegister;

/**
 * Bee-Ext提前预加载初始化
 * @author Kingstar
 * @since  2.0
 */
public class ExtPreLoadInit implements PreLoad{
	
	static {
		Logger.info("[Bee] ========= Preload class ExtPreLoadInit, load...");
		init();
	}
	
	private static void init() {
		JsonDefaultHandler.init();
		MongodbBeeSqlRegister.register(new MongodbSqlLib()); 
		MongodbCommRegister.register(new MongodbCommImpl());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy