org.nutz.boot.AppContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutzboot-core Show documentation
Show all versions of nutzboot-core Show documentation
NutzBoot, micoservice base on Nutz
package org.nutz.boot;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import org.nutz.boot.config.ConfigureLoader;
import org.nutz.boot.env.EnvHolder;
import org.nutz.boot.resource.ResourceLoader;
import org.nutz.boot.starter.ServerFace;
import org.nutz.ioc.Ioc;
import org.nutz.ioc.impl.PropertiesProxy;
import org.nutz.ioc.loader.combo.ComboIocLoader;
import org.nutz.lang.util.LifeCycle;
/**
* 全局上下文
*
* @author wendal([email protected])
*
*/
public class AppContext implements LifeCycle {
protected static AppContext _default = new AppContext();
/**
* Ioc容器
*/
protected Ioc ioc;
/**
* ClassLoader
*/
protected ClassLoader classLoader;
/**
* 配置加载器
*/
protected ConfigureLoader configureLoader;
/**
* 资源加载器
*/
protected ResourceLoader resourceLoader;
/**
* 环境信息加载器
*/
protected EnvHolder envHolder;
/**
* Ioc容器的IocLoader引用
*/
protected ComboIocLoader comboIocLoader;
/**
* 主类
*/
protected Class> mainClass;
/**
* 主扫描路径
*/
protected String mainPackage;
/**
* 一个Starter列表
*/
protected List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy