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

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


    assertEquals( "Can do anything", authenticationModule.getUser().getRole().getDescription() );
  }
 
  @Test
  public void testMasterFileConfigurationListener() throws Exception {
    PropertyConfigurator configurator = new PropertyConfigurator( new MasterFileLoadingLogic( "etc/master-configuration.properties", true ) );
   
    configurator.registerConfigurationListener( DatabaseConfiguration.class, this );
    configurator.registerConfigurationListener( AuthenticationModule.class, this );
   
    assertEquals( "javax.sql", databaseConfiguration.getDriverName() );
View Full Code Here


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

    this.authenticationModule = authenticationModule;
    System.out.println( this.authenticationModule );
  }
 
  public static void main(String[] args) throws Exception {
    PropertyConfigurator configurator = new PropertyConfigurator( new MasterFileLoadingLogic( "etc/master-configuration.properties", true ) );
   
    configurator.registerConfigurationListener( DatabaseConfiguration.class, configurator );
    configurator.registerConfigurationListener( AuthenticationModule.class, configurator );
   
    while( true ) {
View Full Code Here

TOP

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

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.