Package jodd.petite.mix

Examples of jodd.petite.mix.Big2


    pc.getConfig().setDetectMixedScopes(true);

    pc.registerPetiteBean(Big2.class, "big", SingletonScope.class, null, false);
    pc.registerPetiteBean(Small.class, "small", ProtoScope.class, null, false);

    Big2 big = (Big2) pc.getBean("big");

    Small small1 = big.getSmall();
    Small small2 = big.getSmall();

    assertSame(small1, small2);        // factory !!!

    assertEquals(1, Small.instanceCounter);
View Full Code Here

TOP

Related Classes of jodd.petite.mix.Big2

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.