My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.extensiblejava.mediator;

import com.extensiblejava.financial.*;
import com.extensiblejava.bill.*;
import java.math.*;

//Escalate the dependency upon financial to BillPayerAdapter.
public class BillPayerAdapter implements BillPayer, Payable {
private Bill bill;
public BillPayerAdapter(Bill bill) {
this.bill = bill;
}

public BigDecimal generateDraft(Bill bill) {
Payment payer = new Payment();
return payer.generateDraft(this);
}

public BigDecimal getAmount() {
return this.bill.getAmount();
}

public BigDecimal getAuditedAmount() {
return this.bill.getAuditedAmount();
}
}

Change log

r73 by pragkirk on Nov 5, 2009   Diff
Initial Version
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 634 bytes, 26 lines
Powered by Google Project Hosting