• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I get EO's instantiated with dynamic class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How do I get EO's instantiated with dynamic class?
      • From: Kieran Kelleher <email@hidden>
References: 
 >How do I get EO's instantiated with dynamic class? (From: Riccardo De Menna <email@hidden>)
 >Re: How do I get EO's instantiated with dynamic class? (From: Guido Neitzer <email@hidden>)
 >Re: How do I get EO's instantiated with dynamic class? (From: Riccardo De Menna <email@hidden>)
 >Re: How do I get EO's instantiated with dynamic class? (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: How do I get EO's instantiated with dynamic class?
  • Next by Date: Re: How do I get EO's instantiated with dynamic class?
  • Previous by thread: Re: How do I get EO's instantiated with dynamic class?
  • Next by thread: Re: How do I get EO's instantiated with dynamic class?
  • Index(es):
    • Date
    • Thread