Package jodd.petite.data

Examples of jodd.petite.data.PojoAnnBean


    PetiteContainer pc = new PetiteContainer();
    pc.registerPetiteBean(SomeService.class, null, null, null, false);
    pc.registerPetiteBean(PojoAnnBean.class, "pojo", null, null, false);
    assertEquals(2, pc.getTotalBeans());

    PojoAnnBean pojoBean = (PojoAnnBean) pc.getBean("pojo");
    SomeService ss = (SomeService) pc.getBean("someService");

    assertNotNull(pojoBean);
    assertNotNull(ss);
    assertSame(ss, pojoBean.fservice);
View Full Code Here


    petite(pc).bean(SomeService.class).register();
    petite(pc).bean(PojoAnnBean.class).name("pojo").register();

    assertEquals(2, pc.getTotalBeans());

    PojoAnnBean pojoBean = (PojoAnnBean) pc.getBean("pojo");
    SomeService ss = (SomeService) pc.getBean("someService");

    assertNotNull(pojoBean);
    assertNotNull(ss);
    assertSame(ss, pojoBean.fservice);
View Full Code Here

    PetiteContainer pc = new PetiteContainer();
    pc.registerPetiteBean(SomeService.class, null, null, null, false);
    pc.registerPetiteBean(PojoAnnBean.class, "pojo", null, null, true);
    assertEquals(2, pc.getTotalBeans());

    PojoAnnBean pojoBean = (PojoAnnBean) pc.getBean("pojo");
    SomeService ss = (SomeService) pc.getBean("someService");

    assertNotNull(pojoBean);
    assertNotNull(ss);
    assertSame(ss, pojoBean.fservice);
View Full Code Here

    petite(pc).bean(SomeService.class).register();
    petite(pc).bean(PojoAnnBean.class).name("pojo").define().register();

    assertEquals(2, pc.getTotalBeans());

    PojoAnnBean pojoBean = (PojoAnnBean) pc.getBean("pojo");
    SomeService ss = (SomeService) pc.getBean("someService");

    assertNotNull(pojoBean);
    assertNotNull(ss);
    assertSame(ss, pojoBean.fservice);
View Full Code Here

TOP

Related Classes of jodd.petite.data.PojoAnnBean

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.