Examples of AcrossModuleInfo


Examples of com.foreach.across.core.context.info.AcrossModuleInfo

      super( beanFactory, scope );
    }

    // Provided for SPEL property
    public AcrossModule getCurrentModule() {
      AcrossModuleInfo moduleInfo = getBeanFactory().getBean( AcrossContextInfo.class )
                                                    .getModuleBeingBootstrapped();

      return moduleInfo != null ? moduleInfo.getModule() : null;

    }
View Full Code Here

Examples of com.foreach.across.core.context.info.AcrossModuleInfo

      return moduleInfo != null ? moduleInfo.getModule() : null;

    }

    public AcrossModuleSettings getSettings() {
      AcrossModuleInfo moduleInfo = getBeanFactory().getBean( AcrossContextInfo.class )
                                                    .getModuleBeingBootstrapped();

      return moduleInfo != null ? moduleInfo.getSettings() : null;
    }
View Full Code Here

Examples of com.foreach.across.core.context.info.AcrossModuleInfo

  @Test
  public void verifyCurrentModuleWiredCorrectly() {
    AcrossContextInfo contextInfo = AcrossContextUtils.getContextInfo( acrossContext );
    assertNotNull( contextInfo );

    AcrossModuleInfo moduleOne = contextInfo.getModuleInfo( "ModuleOne" );
    assertNotNull( moduleOne );
    ModuleConfig.BeanWithCurrentModules beanWithCurrentModules = beanRegistry.getBeanFromModule( "ModuleOne",
                                                                                                 "beanWithCurrentModules" );
    assertNull( beanWithCurrentModules.getParent() );
    beanWithCurrentModules.assertCurrentModule( moduleOne.getModule() );

    AcrossModuleInfo moduleTwo = contextInfo.getModuleInfo( "ModuleTwo" );
    assertNotNull( moduleTwo );
    beanWithCurrentModules = beanRegistry.getBeanFromModule( "ModuleTwo", "beanWithCurrentModules" );
    beanWithCurrentModules.assertCurrentModule( moduleTwo.getModule() );

    assertNotNull( beanWithCurrentModules.getParent() );

    ModuleConfig.BeanWithCurrentModules parent = beanWithCurrentModules.getParent();
    parent.assertCurrentModule( moduleOne.getModule() );
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.