Interface AccountObserver
- All Known Subinterfaces:
AccountAuditor
- All Known Implementing Classes:
GlobalAccountObserver
,GovernmentAccountAuditor
public interface AccountObserver
A class which facilitates the observance
of transactions within economy accounts.
-
Method Summary
-
Method Details
-
withdrew
Called whenever an account money is withdrawn from an account.- Parameters:
account
- The account withdrew from.amount
- The amount withdrew.reason
- The reason for withdrawing.
-
deposited
Called whenever an account money is deposited to an account.- Parameters:
account
- The account deposited to.amount
- The amount deposited.reason
- The reason for depositing.
-