org.mule.example.loanbroker.lender
Class DefaultLender
java.lang.Object
org.mule.example.loanbroker.lender.DefaultLender
- All Implemented Interfaces:
- LenderService
public class DefaultLender
- extends Object
- implements LenderService
DefaultLenderService
is responsible for contacting the relivant
banks depending on the amount of the loan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLender
public DefaultLender()
setLenderList
public void setLenderList(LoanBrokerQuoteRequest request)
- Sets the list of lenders on the LoanBrokerQuoteRequest and returns it.
getLenders
public Bank[] getLenders(CreditProfile creditProfile,
Double loanAmount)
- Description copied from interface:
LenderService
- Returns a list of banks willing to offer a loan based on a customer's credit profile and the amount of
the loan.
- Specified by:
getLenders
in interface LenderService
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.