Package org.nutz.mvc.ioc.provider

Source Code of org.nutz.mvc.ioc.provider.AnnotationIocProvider

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.annotation.AnnotationIocLoader;
import org.nutz.mvc.IocProvider;
import org.nutz.mvc.NutConfig;

public class AnnotationIocProvider implements IocProvider {

  public Ioc create(NutConfig config, String[] args) {
    return new NutIoc(new AnnotationIocLoader(args), new ScopeContext("app"), "app");
  }

}
TOP

Related Classes of org.nutz.mvc.ioc.provider.AnnotationIocProvider

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.