Nope, because an object doesn't care about subclasses.  The
superclasses, on the other hand, are critical, becauase they define
both types and behaviour for an object.  If you want some kind of
dynamic awareness of subclasses, you'll have to scan the filesystem
for suitable files.

Keep in mind that getMetaData is for an instance, not a class.  MM did
a bit of a disservice to developers by using "CFC" to mean both a CFC
class and a CFC instance, and this is a good example of why.

cheers,
barneyb

On 12/19/05, Haikal Saadh <[EMAIL PROTECTED]> wrote:
> Hello all.
>
> Is it possible at all, with MX6.1, to find out what a components
> subclasses are? Finding the superclass is simple enough, using
> getMetaData(), but there appears to be no facility to find subclasses.
>
> What I am basically trying to do is an implementation of the Strategy
> pattern, and the idea is that new stragetegies can be implemented by
> simply dropping in addition classes that extend that particular
> strategy. I was hoping to use introspection so as to avoid having to
> manually keep track of what's available.
>
> Ideas?
>
> Thanks.
>

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to