Package org.nutz.ioc.val

Source Code of org.nutz.ioc.val.InnerValue

package org.nutz.ioc.val;

import org.nutz.ioc.IocMaking;
import org.nutz.ioc.ObjectProxy;
import org.nutz.ioc.ValueProxy;
import org.nutz.ioc.meta.IocObject;

public class InnerValue implements ValueProxy {

    private IocObject iobj;

    public InnerValue(IocObject iobj) {
        this.iobj = iobj;
    }

    public Object get(IocMaking ing) {
        IocMaking innering = ing.clone(null);
        ObjectProxy op = ing.getObjectMaker().make(innering, iobj);
        return op.get(iobj.getType(), innering);
    }

}
TOP

Related Classes of org.nutz.ioc.val.InnerValue

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.