Package dev.db.biz.configuration.property.logic

Examples of dev.db.biz.configuration.property.logic.MultiFileLoadingLogic


  private DatabaseConfiguration databaseConfiguration;
  private AuthenticationModule authenticationModule;
 
  @Test
  public void testMultiFileConfigurationListener() throws Exception {
    PropertyConfigurator configurator = new PropertyConfigurator( new MultiFileLoadingLogic( "etc", true ) );
   
    configurator.registerConfigurationListener( DatabaseConfiguration.class, this );
    configurator.registerConfigurationListener( AuthenticationModule.class, this );

    // database configuration
View Full Code Here


    assertEquals( "Can do anything", authenticationModule.getUser().getRole().getDescription() );
  }
 
  @Test
  public void testLoadMultiFileConfiguration() throws Exception {
    PropertyConfigurator configurator = new PropertyConfigurator( new MultiFileLoadingLogic( "etc", true ) );
   
    DatabaseConfiguration configuration = new DatabaseConfiguration();
    configurator.loadPropertyConfigurationObject( configuration );
   
    AuthenticationModule authenticationModule = new AuthenticationModule();
View Full Code Here

TOP

Related Classes of dev.db.biz.configuration.property.logic.MultiFileLoadingLogic

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.