Say in a typical app where you have a framework of service classes, that do the business. And you then have a set of classes that represent business entities. The former set may be easily wired together in spring, but the latter set will be instantiated adhoc through the application. Is there any clean way to instantiate these through Spring?

The way I currently achieve this is to have a factory class that uses spring code to get the beans from the app-context. But is there a more transparent way?