Package org.nutz.ioc

Examples of org.nutz.ioc.Ioc


        this.objType = objType;
        this.objName = objName;
    }

    public Object get(ServletContext sc, HttpServletRequest req, HttpServletResponse resp, Object refer) {
        Ioc ioc = Mvcs.getIoc();
        if (null == ioc)
            throw new RuntimeException("You need define @IocBy in main module!!!");
        if (Strings.isBlank(objName))
            return ioc.get(objType);
        return ioc.get(objType, objName);
    }
View Full Code Here

TOP

Related Classes of org.nutz.ioc.Ioc

Copyright © 2018 www.massapicom. 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.