| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 
 | public class BillingModule extends AbstractModule {@Override
 protected void configure() {
 
 
 * This tells Guice that whenever it sees a dependency on a TransactionLog,
 * it should satisfy the dependency using a DatabaseTransactionLog.
 */
 bind(TransactionLog.class).to(DatabaseTransactionLog.class);
 
 
 * Similarly, this binding tells Guice that when CreditCardProcessor is used in
 * a dependency, that should be satisfied with a PaypalCreditCardProcessor.
 */
 bind(CreditCardProcessor.class).to(PaypalCreditCardProcessor.class);
 }
 }
 
 |