Package org.nutz.ioc.aop.impl

Examples of org.nutz.ioc.aop.impl.DefaultMirrorFactory


    vpms = new ArrayList<ValueProxyMaker>(5); // 预留五个位置,足够了吧
    addValueProxyMaker(new DefaultValueProxyMaker());

    // 初始化类工厂, 这是同 AOP 的连接点
    if (mirrors == null)
      this.mirrors = new DefaultMirrorFactory(this);
    else
      this.mirrors = mirrors;
  }
View Full Code Here


public class XmlAopConfigrationTest {

  @Test
  public void testGetMirror() throws ParserConfigurationException, SAXException, IOException {
    DefaultMirrorFactory mirrorFactory = new DefaultMirrorFactory(null);
    mirrorFactory.setAopConfigration(new XmlAopConfigration("org/nutz/ioc/aop/config/impl/xmlfile-aop.xml"));
    assertNotNull(mirrorFactory.getMirror(XmlAopConfigration.class, null));
    assertNotNull(mirrorFactory.getMirror(DefaultMirrorFactory.class, null));
    assertNotNull(mirrorFactory.getMirror(NutDao.class, null));
    assertNotNull(mirrorFactory.getMirror(NutIoc.class, null));
  }
View Full Code Here

        vpms = new ArrayList<ValueProxyMaker>(5); // 预留五个位置,足够了吧
        addValueProxyMaker(new DefaultValueProxyMaker());

        // 初始化类工厂, 这是同 AOP 的连接点
        if (mirrors == null)
            this.mirrors = new DefaultMirrorFactory(this);
        else
            this.mirrors = mirrors;
    }
View Full Code Here

        vpms = new ArrayList<ValueProxyMaker>(5); // 预留五个位置,足够了吧
        addValueProxyMaker(new DefaultValueProxyMaker());

        // 初始化类工厂, 这是同 AOP 的连接点
        if (mirrors == null)
            this.mirrors = new DefaultMirrorFactory(this);
        else
            this.mirrors = mirrors;
    }
View Full Code Here

public class XmlAopConfigrationTest {

    @Test
    public void testGetMirror() throws ParserConfigurationException, SAXException, IOException {
        DefaultMirrorFactory mirrorFactory = new DefaultMirrorFactory(null);
        mirrorFactory.setAopConfigration(new XmlAopConfigration("org/nutz/ioc/aop/config/impl/xmlfile-aop.xml"));
        assertNotNull(mirrorFactory.getMirror(XmlAopConfigration.class, null));
        assertNotNull(mirrorFactory.getMirror(DefaultMirrorFactory.class, null));
        assertNotNull(mirrorFactory.getMirror(NutDao.class, null));
        assertNotNull(mirrorFactory.getMirror(NutIoc.class, null));
    }
View Full Code Here

TOP

Related Classes of org.nutz.ioc.aop.impl.DefaultMirrorFactory

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.