Reputation: 332
Factory pattern is used to create objects runtime which provides loose coupling by placing object creation at one placce.Does Spring applies same pattern sincein spring we does coding to interface and keeps objects creation in xml configuration file?...
Upvotes: 0
Views: 2659
Reputation: 15204
Yes, Spring allows it, by using FactoryBean
interface. For more information follow these links:
Upvotes: 2