Category Archives: Java

Generate Interface from Implementation class using Spring STS

Lets say I have an implementation class already defined and now to be able to support SOLID principles, now I need to expose an interface for the implementation class so that we can perform the dependency injection. My existing class looks like this: package com.bankaccountholder.dal; import java.util.ArrayList; import java.util.List; import com.bankaccount.model.AccountHolder; public class AccountHolderRepositoryImplementation { … Continue reading Generate Interface from Implementation class using Spring STS