Package com.bank.service.internal

Examples of com.bank.service.internal.FlatFeePolicy


      .build();
  }

  @Bean
  public FeePolicy feePolicy() {
    return new FlatFeePolicy(env.getProperty("flatfee.amount", double.class));
  }
View Full Code Here


    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")));

    // generate a random amount between 10.00 and 90.00 dollars
View Full Code Here

    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.service.internal.FlatFeePolicy

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.