Package com.foreach.across.test.modules.exposing

Examples of com.foreach.across.test.modules.exposing.LazyExposedBean


  public void lazyBeanFromChildOnlyGetsCreatedWhenRequestedFirstTime() {
    registerBeanInParent( "factory", "lazyBean", LazyExposedBean.class );

    assertEquals( 0, LazyExposedBean.getCreationCount() );

    LazyExposedBean bean = parent.getBean( LazyExposedBean.class );
    assertNotNull( bean );
    assertEquals( 1, LazyExposedBean.getCreationCount() );

    assertSame( bean, childOne.getBean( "lazyBean" ) );
    assertSame( bean, childOne.getBean( LazyExposedBean.class ) );
View Full Code Here


    }

    @Bean
    @Lazy
    public LazyExposedBean lazyBean() {
      return new LazyExposedBean();
    }
View Full Code Here

TOP

Related Classes of com.foreach.across.test.modules.exposing.LazyExposedBean

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.