Re: How do I get EO's instantiated with dynamic class?
Re: How do I get EO's instantiated with dynamic class?
- Subject: Re: How do I get EO's instantiated with dynamic class?
- From: Guido Neitzer <email@hidden>
- Date: Fri, 17 Aug 2007 10:37:49 -0600
On 17.08.2007, at 10:20, Kieran Kelleher wrote:
I prefer using the Strategy Design Pattern instead of inheritance
whenever possible
Actually this really makes sense here, as the domain objects differ
normally not in different attributes (which would make it a candiate
for inheritance) but different behaviour.
As I understand it for this case, you'd have a single "Domain" entity
and class and an open number of "behaviour" plugins, selected
depending on the TLD entry, right?
It seems to be a good solution for this problem if there is no
additional / different information stored for the different "domain
types".
cug
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden