Package com.foreach.across.core.context

Examples of com.foreach.across.core.context.AcrossApplicationContext


    assertNull( fetch( registry, "one" ) );
  }

  @Test
  public void withParentSingleModuleApplicationContextDestroyed() {
    AcrossApplicationContext parent = new AcrossApplicationContext();
    parent.refresh();

    AcrossContext context = boot( parent );

    assertEquals( "one", fetch( parent, "one" ) );
    assertEquals( "two", fetch( parent, "two" ) );
View Full Code Here


    assertNull( fetch( registry, "one" ) );
  }

  @Test
  public void withParentRootApplicationContextDestroyed() {
    AcrossApplicationContext parent = new AcrossApplicationContext();
    parent.refresh();

    AcrossContext context = boot( parent );

    assertEquals( "one", fetch( parent, "one" ) );
    assertEquals( "two", fetch( parent, "two" ) );
View Full Code Here

    beanRegistry = AcrossContextUtils.getBeanRegistry( acrossContext );
    contextInfo = AcrossContextUtils.getContextInfo( acrossContext );
  }

  protected AcrossConfigurableApplicationContext createApplicationContext() {
    AcrossApplicationContext ctx = new AcrossApplicationContext();
    ctx.register( AcrossTestContextConfiguration.class );

    return ctx;
  }
View Full Code Here

public class AnnotationConfigBootstrapApplicationContextFactory implements BootstrapApplicationContextFactory
{
  @Override
  public AbstractApplicationContext createApplicationContext() {
    return new AcrossApplicationContext();
  }
View Full Code Here

TOP

Related Classes of com.foreach.across.core.context.AcrossApplicationContext

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.