On Tue, 7 Dec 2004 18:31:21 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Also keep in mind that I need to make use of a global functions or objects
Why? Are you sure?

> Thus you see "createSingleton()" methods. 
Are you sure you need those classes to be singletons? If so, have you
considered putting that "createSingleton()" method in an object that
you pass around wherever you need it, or maybe make it globally
available via Mach-ii?

> I also figure I would use a "DataLayer Gateway Factory"
That sounds like a good idea.

I think your DataResourceBean may be unnecessarily constrained. You
need to know the type of data resource (XML, SQL Server, or whatever),
and the properties, which vary between types. So why don't you just
have a type and a collection of properties? Use the type to determine
which factory to create and use the properties collection to
initialize that factory. Are you familiar with the Abstract Factory
pattern?

Patrick

-- 
Patrick McElhaney
704.560.9117
http://pmcelhaney.blogspot.com
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at 
[EMAIL PROTECTED]

Reply via email to