Re: New addressbook backend.

On Mon, 2004-02-02 at 21:56 -0500, Nat Friedman wrote:
>         * Matches should have types, so that you can map a type to a
>         renderer:
>         	Match m = new Match ("BugzillaBug");
>         A renderer can then register itself for BugzillaBug matches:
>         	RegisterRenderer ("BugzillaBug", RendererClass);

You should probably use reflection here and the fact that you can know
the types of objects and do intelligent things with them.

For example, a BugzillaBugMatch would derive from Match and contain
specific data about the bugzilla entry.  Then you'd just do
"RegisterRenderer (BugzillaBugMatch, RendererClass)" and you have the
benefit of the RendererClass being able to use typesafe information from
that match class.

I haven't read the rest of the email yet. :)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]