org.nutz.mvc.ioc.provider.XmlIocProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package org.nutz.mvc.ioc.provider;
import org.nutz.ioc.Ioc;
import org.nutz.ioc.impl.NutIoc;
import org.nutz.ioc.impl.ScopeContext;
import org.nutz.ioc.loader.xml.XmlIocLoader;
import org.nutz.mvc.IocProvider;
import org.nutz.mvc.NutConfig;
/**
* 请使用ComboIocProvider
*/
@Deprecated
public class XmlIocProvider implements IocProvider {
public Ioc create(NutConfig config, String[] args) {
return new NutIoc(new XmlIocLoader(args), new ScopeContext("app"), "app");
}
}