All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.ioc.val.InnerValue Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy