Examples of containsLocalBean()


Examples of org.springframework.beans.factory.support.DefaultListableBeanFactory.containsLocalBean()

    lbf.registerAlias("x1", "x2");
    assertTrue(lbf.containsBean("x2"));
    assertFalse(lbf.containsBean("&x2"));
    assertTrue(lbf.containsLocalBean("x2"));
    assertFalse(lbf.containsLocalBean("&x2"));
    assertFalse(lbf.isSingleton("x2"));
    assertFalse(lbf.isSingleton("&x2"));
    assertTrue(lbf.isPrototype("x2"));
    assertFalse(lbf.isPrototype("&x2"));
    assertTrue(lbf.isTypeMatch("x2", TestBean.class));
View Full Code Here

Examples of org.springframework.context.annotation.AnnotationConfigApplicationContext.containsLocalBean()

    dispatcherCtx.refresh();

    assertTrue(ctx.containsLocalBean("fooBean"));
    assertFalse(ctx.containsLocalBean("fooController"));

    assertFalse(dispatcherCtx.containsLocalBean("fooBean"));
    assertTrue(dispatcherCtx.containsLocalBean("fooController"));
  }

}
View Full Code Here

Examples of org.springframework.context.annotation.AnnotationConfigApplicationContext.containsLocalBean()

    assertTrue(ctx.containsLocalBean("fooBean"));
    assertFalse(ctx.containsLocalBean("fooController"));

    assertFalse(dispatcherCtx.containsLocalBean("fooBean"));
    assertTrue(dispatcherCtx.containsLocalBean("fooController"));
  }

}
View Full Code Here

Examples of org.springframework.context.annotation.AnnotationConfigApplicationContext.containsLocalBean()

    this.context.refresh();
    AnnotationConfigApplicationContext childContext = new AnnotationConfigApplicationContext();
    childContext.setParent(this.context);
    childContext.register(HierarchyConsidered.class);
    childContext.refresh();
    assertFalse(childContext.containsLocalBean("bar"));
  }

  @Test
  public void hierarchyNotConsidered() throws Exception {
    this.context.register(FooConfiguration.class);
View Full Code Here

Examples of org.springframework.context.annotation.AnnotationConfigApplicationContext.containsLocalBean()

    this.context.refresh();
    AnnotationConfigApplicationContext childContext = new AnnotationConfigApplicationContext();
    childContext.setParent(this.context);
    childContext.register(HierarchyNotConsidered.class);
    childContext.refresh();
    assertTrue(childContext.containsLocalBean("bar"));
  }

  @Test
  public void impliedOnBeanMethod() throws Exception {
    this.context.register(ExampleBeanConfiguration.class, ImpliedOnBeanMethod.class);
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.