Coding to an interface using Springframework