user530158
user530158

Reputation: 332

Spring factory pattern

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

Answers (1)

Slava Semushin
Slava Semushin

Reputation: 15204

Yes, Spring allows it, by using FactoryBean interface. For more information follow these links:

Upvotes: 2

Related Questions