Package com.foreach.across.core

Examples of com.foreach.across.core.AcrossContext.addApplicationContextConfigurer()


      ScannedBeanModule2.CONSTRUCTION_COUNTER.set( 0 );

      AcrossContext context = new AcrossContext( applicationContext );
      context.setDataSource( acrossDataSource() );
      context.setInstallerAction( InstallerAction.EXECUTE );
      context.addApplicationContextConfigurer( new AnnotatedClassConfigurer( CustomPropertyConfig.class ),
                                               ConfigurerScope.CONTEXT_AND_MODULES );

      context.addModule( testModule1() );
      context.addModule( testModule2() );
View Full Code Here


    public AcrossContext acrossContext( ConfigurableApplicationContext applicationContext ) throws Exception {
      AcrossContext acrossContext = new AcrossContext( applicationContext );
      acrossContext.setDataSource( dataSource() );
      acrossContext.addModule( hibernate1Module() );
      acrossContext.addModule( hibernate2Module() );
      acrossContext.addApplicationContextConfigurer( new TransactionManagementConfigurer(),
                                                     ConfigurerScope.CONTEXT_AND_MODULES );

      return acrossContext;
    }
View Full Code Here

      acrossContext.addModule( directOnModule() );
      acrossContext.addModule( sourceOnModule() );
      acrossContext.addModule( onlyFromContext() );
      acrossContext.addModule( moduleFour() );

      acrossContext.addApplicationContextConfigurer( new PropertyPlaceholderSupportConfigurer(),
                                                     ConfigurerScope.CONTEXT_AND_MODULES );

      acrossContext.addPropertySources(
          new ClassPathResource( "com/foreach/across/test/TestPropertiesContext.properties" ) );
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.