If your looking into using Spring for your applications you should definitely check the following link. It’s an excellent guide on using Spring Factory Beans, includes use cases as well as an indepth look :
http://blog.arendsen.net/index.php/2005/07/03/using-factorybeans-to-create-the-uncreatable/