BO patterns
Hey all
Are there any good creational patterns for business objects? I've been using a abstract factory pattern for my DAO layer which works fine, but which pattern should I use for my BO layer? All suggestions are welcomed, I would though prefer simple patterns since I don't want the BO layer to get too abstract.
[330 byte] By [
syncroa] at [2007-10-2 12:10:56]

> Hey all
>
> Are there any good creational patterns for business
> objects? I've been using a abstract factory pattern
> for my DAO layer which works fine, but which pattern
> should I use for my BO layer? All suggestions are
> welcomed, I would though prefer simple patterns since
> I don't want the BO layer to get too abstract.
What do you need patterns for ?
Usually, BO are not created through factories... Abstract factory is handy for DAOs because we expect DAOs to be pluggable (many different data source types)...
Coding to interfaces and using dependency injection to link BOs together should keep your business layer nicely loosely-coupled. Using Dependency Injection Frameworks, like Spring, can help...