package com.blogspot.toomuchcoding.book.chapter9.InjectingWithInnerJukitoModule; import com.blogspot.toomuchcoding.person.Person; import com.google.inject.Inject; public class TaxTransferer { private final TaxService taxService; @Inject public TaxTransferer(TaxService taxService) { this.taxService = taxService; } public boolean transferTaxFor(Person person) { if (person == null) { return false; } System.out.printf("Transfering tax for person from [%s]%n", person.getCountryName()); taxService.transferTaxFor(person); return true; } }