title: How to Load only selective classes or beans in Spring
body: <p>I have an Interface say A, and five implementations for it say A1, A2, A3, A4, A5 in the same package.
  Now when starting spring application, I only want to load one say A1 out of A1, A2, A3, A4, A5 depending upon autowiring. I dont want to load others as it will make the application heavy if there are many classes like those.  Please explain possible answer.</p>