I have 2 tax implementation classes IndianTaxCalculation and USTAxCalculation which have implementaions for calculateTax() method. I need
IndianTaxCalculation
USTAxCalculation
calculateTax()
I think the topic below can answer your question. Please refer to How to do conditional auto-wiring in Spring?