Examples of DIContainerFactory


Examples of org.tamacat.di.impl.DIContainerFactory

  public void tearDown() throws Exception {
  }

  @Test
  public void testGetInstance() {
    DIContainer di1 = new DIContainerFactory(null).getInstance("test.xml");
    DIContainer di2 = new DIContainerFactory(null).getInstance("test.xml");
    assertSame(di1, di2);
  }
View Full Code Here

Examples of org.tamacat.di.impl.DIContainerFactory

  static final DI DI = new DI();
 
  private DI() {
    manager = new HashMap<ClassLoader, DIContainerFactory>();
    ClassLoader loader = getClass().getClassLoader();
    manager.put(loader, new DIContainerFactory(loader));
  }
View Full Code Here

Examples of org.tamacat.di.impl.DIContainerFactory

    manager.put(loader, new DIContainerFactory(loader));
  }
 
  private DIContainerFactory getFactory(ClassLoader loader) {
    if (loader == null) loader = ClassUtils.getDefaultClassLoader();
    DIContainerFactory factory = manager.get(loader);
    if (factory == null) {
      factory = new DIContainerFactory(loader);
      manager.put(loader, factory);
    }
    return factory;
  }
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.