// Path: xxl-conf-samples/xxl-conf-sample-nutz/src/main/java/com/xxl/conf/sample/nutz/config/NutzSetup.java
// public class NutzSetup implements Setup {
// 	private Logger logger = LoggerFactory.getLogger(NutzSetup.class);
// 
// 	@Override
// 	public void init(NutConfig cfg) {
// 		Properties prop = PropUtil.loadProp("xxl-conf.properties");
// 
// 		XxlConfBaseFactory.init(
// 				prop.getProperty("xxl.conf.admin.address"),
// 				prop.getProperty("xxl.conf.env"),
// 				prop.getProperty("xxl.conf.access.token"),
// 				prop.getProperty("xxl.conf.mirrorfile"));
// 	}
// 
// 	@Override
// 	public void destroy(NutConfig cfg) {
// 		XxlConfBaseFactory.destroy();
// 	}
// 
// }


import com.xxl.conf.sample.nutz.config.NutzSetup;
import org.nutz.mvc.annotation.*;
import org.nutz.mvc.ioc.provider.ComboIocProvider;
package com.xxl.conf.sample.nutz;


/**
 * nutz module
 *
 * @author xuxueli 2018-05-24
 */
@IocBy(type = ComboIocProvider.class,
        args = {"*org.nutz.ioc.loader.annotation.AnnotationIocLoader",
                "com.xxl.conf.sample.nutz"})
@Encoding(input = "utf-8", output = "utf-8")
@Modules(scanPackage = true)
@Localization("msg")
@Ok("json")
@Fail("json")
// Path: xxl-conf-samples/xxl-conf-sample-nutz/src/main/java/com/xxl/conf/sample/nutz/config/NutzSetup.java
// public class NutzSetup implements Setup {
// 	private Logger logger = LoggerFactory.getLogger(NutzSetup.class);
// 
// 	@Override
// 	public void init(NutConfig cfg) {
// 		Properties prop = PropUtil.loadProp("xxl-conf.properties");
// 
// 		XxlConfBaseFactory.init(
// 				prop.getProperty("xxl.conf.admin.address"),
// 				prop.getProperty("xxl.conf.env"),
// 				prop.getProperty("xxl.conf.access.token"),
// 				prop.getProperty("xxl.conf.mirrorfile"));
// 	}
// 
// 	@Override
// 	public void destroy(NutConfig cfg) {
// 		XxlConfBaseFactory.destroy();
// 	}
// 
// }


// Path: xxl-conf-samples/xxl-conf-sample-nutz/src/main/java/com/xxl/conf/sample/nutz/MainModule.java
import com.xxl.conf.sample.nutz.config.NutzSetup;
import org.nutz.mvc.annotation.*;
import org.nutz.mvc.ioc.provider.ComboIocProvider;

package com.xxl.conf.sample.nutz;


/**
 * nutz module
 *
 * @author xuxueli 2018-05-24
 */
@IocBy(type = ComboIocProvider.class,
        args = {"*org.nutz.ioc.loader.annotation.AnnotationIocLoader",
                "com.xxl.conf.sample.nutz"})
@Encoding(input = "utf-8", output = "utf-8")
@Modules(scanPackage = true)
@Localization("msg")
@Ok("json")
@Fail("json")
@SetupBy(NutzSetup.class)