Package jfun.yan.containers

Examples of jfun.yan.containers.DefaultContainer.inherit()


   
    public void testUnregisterOnlyAffectsChild()
    throws Exception{
      final Container parent = new DefaultContainer();
      final Container child = new DefaultContainer();
      final Container cc = child.inherit(parent);
      cc.registerConstructor(HashMap.class, (Class[])null);
      assertNull(parent.getComponent(HashMap.class));
      cc.verify();
      parent.registerValue(new Character('a'));
      assertTrue(cc.getComponent(Character.class)!=null);
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.