Package com.bank.repository.internal

Examples of com.bank.repository.internal.JdbcAccountRepository


    return new FlatFeePolicy(env.getProperty("flatfee.amount", double.class));
  }

  @Bean
  public AccountRepository accountRepository() {
    return new JdbcAccountRepository(dataSource());
  }
View Full Code Here


    Properties props = new Properties();
    props.load(TransferScript.class.getClassLoader()
        .getResourceAsStream("com/bank/config/app.properties"));

    TransferService transferService = new DefaultTransferService(
        new JdbcAccountRepository(dataSource),
        new FlatFeePolicy(Double.valueOf(props.getProperty("flatfee.amount"))));

    transferService.setMinimumTransferAmount(
        Double.valueOf(props.getProperty("minimum.transfer.amount")));
View Full Code Here

    Properties props = new Properties();
    props.load(this.getClass().getClassLoader()
        .getResourceAsStream("com/bank/config/app.properties"));

    this.transferService = new DefaultTransferService(
        new JdbcAccountRepository(dataSource),
        new FlatFeePolicy(Double.valueOf(props.getProperty("flatfee.amount"))));

    this.transferService.setMinimumTransferAmount(
        Double.valueOf(props.getProperty("minimum.transfer.amount")));
  }
View Full Code Here

TOP

Related Classes of com.bank.repository.internal.JdbcAccountRepository

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.