On 07/10/2007 03:22 PM Kore Nordmann wrote:

> <koredn> I got an ezc option class, which already extends an existing
> option class. (svgDriverOptions extends driverOptions) Now I want to
> introduce another set of options there (classical example for multiple
> inheritance). What is the cleanest way to do so .. interfaces won't
> really help here. Just add the options in all "implementing" classes?
> <koredn> Cause: A new feature which requires new options but can't be
> used with all drivers
> <Derick> two options:
> <Derick> 1. implement it all the option classes that should support it
> <Derick> 2. implement it in the parent class, and exclude them in the
> child option classes by making an explicit check for them - and thworing
> an exception if it can not be used
> <Derick> I think I prefer 1, but you should ask the list.

> In the design doc I go for option 1.

Option 3: Implement it in a new option class and use delegation to this
class for all option classes that should support these.

Idea?

Regards,
Toby
-- 
Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards

Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer

[EMAIL PROTECTED] | eZ Systems AS | ez.no
-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to