Nick,

Cold fusion doesn't use constructors in a traditional sense, but the concept
still applies to the invocation. You are instantiating a component or object
and you will use it's methods and properties when it's instantiated. You can
even make the object persistent using application and/or session scopes
(There's a great article on persistence on desdev or CFDJ - I think it was
Ben who wrote it).  To put it another way, when you invoke a web service the
platform you are on uses the WSDL file. The file describes the class, it's
properties, methods and interfaces.

The platform is able to use the WSDL information to create a "stub" or a
"proxy class" that acts (to the code) as if the class is local. In other
words it acts as any other class - or component - acts for that platform.
It's basically the same concept as an RPC call - without the proprietary
baggage (theoretically <g>).  In fact, that is the way web services are
often described: "the ability to make an "RPC-like" calls across platforms
over standard protocols (XML and http)". So if a platform uses constructors,
a constructor for the class looks similar to any other constructor.  The
internals are "masked" from the code by the proxy - giving you the buzzword
pillars of OO (again... theoretically) "encapsulation and abstraction".
Again, the process is applied differently on different platforms.

-mk

-----Original Message-----
From: Nick McClure [mailto:cf-lists@;king-nacho.com]
Sent: Friday, October 25, 2002 9:50 AM
To: CF-Talk
Subject: RE: CFC in .NET


How does one deal with things like Constructors and such?

> -----Original Message-----
> From: Ben Forta [mailto:ben@;forta.com]
> Sent: Friday, October 25, 2002 10:07 AM
> To: CF-Talk
> Subject: RE: CFC in .NET
>
> And you could also write a CFC in CF and invoke it from within .NET.
>
> --- Ben
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to