use of org.nutz.ioc.val.StaticValue in project nutz by nutzam.
the class Iocs method wrap.
public static IocObject wrap(Object obj) {
IocObject iobj = new IocObject();
//iobj.setType(obj.getClass());
iobj.setFactory(Iocs.class.getName() + "#self");
IocValue ival = new IocValue(null, new StaticValue(obj));
iobj.addArg(ival);
return iobj;
}
Aggregations