title: Add custom beans to Spring context
body: <p>I have some classes, with a custom annotation, that shouldn't be instantiated (abstract class, and it's just a subcomponents for a real beans). But on top of this classes, on runtime, on context initialization phase, I want to put extra beans into application context.</p>
  
  <p>So, basically I need to scan classpath, process results, and introduce new beans into curent application context.</p>
  
  <p>It seems that spring-mvc, spring-tasks and spring-integration are doing this (I tried to learn it from sources - no luck)</p>
  
  <p>I found that I can create my own <code>BeanFactoryPostProcessor</code>, scan classpath and call <code>registerSingleton</code> for my custom bean. But I'm not sure that it's a good way for introducing new beans (seems that it's used only for postprocess of exising beans only). And I believe there are some Spring internal tools that I may reuse to simplify process.</p>
  
  <p>What is a conventional way to introduce extra beans on Spring context initialization? </p>