Examples of IocMaking


Examples of org.nutz.ioc.IocMaking

  @Test
  public void test_constants_name() {
    String s = "@Name.substring(0, 6)";
    ChainNode cn = N(s);
    assertEquals(s, cn.toString());
    IocMaking ing = new IocMaking(null, null, null, null, null, "123456789");
    assertEquals("123456", cn.eval(ing));
  }
View Full Code Here

Examples of org.nutz.ioc.IocMaking

  @Test
  public void test_constants_context() {
    String s = "@Context.save('xx', 'tt', null)";
    ChainNode cn = N(s);
    assertEquals(s, cn.toString());
    IocMaking ing = new IocMaking(null, null, new ScopeContext("app"), null, null, null);
    assertFalse((Boolean) cn.eval(ing));
  }
View Full Code Here

Examples of org.nutz.ioc.IocMaking

        log.trace("Link contexts");
      cntx = new ComboContext(context, this.context);
    }

    // 创建对象创建时
    IocMaking ing = new IocMaking(this, mirrors, cntx, maker, vpms, name);

    // 从上下文缓存中获取对象代理
    ObjectProxy op = cntx.fetch(name);

    // 如果未发现对象
View Full Code Here

Examples of org.nutz.ioc.IocMaking

  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);
  }
View Full Code Here

Examples of org.nutz.ioc.IocMaking

            log.debugf("Get '%s'<%s>", name, type);

       

        // 创建对象创建时
        IocMaking ing = makeIocMaking(context, name);
        IocContext cntx = ing.getContext();

        // 从上下文缓存中获取对象代理
        ObjectProxy op = cntx.fetch(name);

        // 如果未发现对象
View Full Code Here

Examples of org.nutz.ioc.IocMaking

        else {
            if (log.isTraceEnabled())
                log.trace("Link contexts");
            cntx = new ComboContext(context, this.context);
        }
        return new IocMaking(this, mirrors, cntx, maker, vpms, name);
    }
View Full Code Here

Examples of org.nutz.ioc.IocMaking

    @Test
    public void test_constants_name() {
        String s = "@Name.substring(0, 6)";
        ChainNode cn = N(s);
        assertEquals(s, cn.toString());
        IocMaking ing = new IocMaking(null, null, null, null, null, "123456789");
        assertEquals("123456", cn.eval(ing));
    }
View Full Code Here

Examples of org.nutz.ioc.IocMaking

    @Test
    public void test_constants_context() {
        String s = "@Context.save('xx', 'tt', null)";
        ChainNode cn = N(s);
        assertEquals(s, cn.toString());
        IocMaking ing = new IocMaking(null, null, new ScopeContext("app"), null, null, null);
        assertFalse((Boolean) cn.eval(ing));
    }
View Full Code Here

Examples of org.nutz.ioc.IocMaking

    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);
    }
View Full Code Here

Examples of org.nutz.ioc.IocMaking

            log.debugf("Get '%s'<%s>", name, type == null ? "" : type);

       

        // 创建对象创建时
        IocMaking ing = makeIocMaking(context, name);
        IocContext cntx = ing.getContext();

        // 从上下文缓存中获取对象代理
        ObjectProxy op = cntx.fetch(name);

        // 如果未发现对象
View Full Code Here
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.