org.mule.example.loanbroker.lender
Class DefaultLender

java.lang.Object
  extended by 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


Constructor Summary
DefaultLender()
           
 
Method Summary
 Bank[] getLenders(CreditProfile creditProfile, Double loanAmount)
          Returns a list of banks willing to offer a loan based on a customer's credit profile and the amount of the loan.
 void setLenderList(LoanBrokerQuoteRequest request)
          Sets the list of lenders on the LoanBrokerQuoteRequest and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLender

public DefaultLender()
Method Detail

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.