Evening.

I have an object "store" (objects/store.cfc) which is a CFC that checks
the application scope for a stored instance of a given object and either
returns a reference to that or creates a new instance, stores that and
returns the reference to the new object.

This is fine for using in the "application code" but I also want other
CFCs to be able to utilise the effects of the store, so I have a base
class (objects/base.cfc) that all other objects extend and has an init
function that takes in the argument of a reference to a store object --
this reference is passed by the store object itself by passing "this" as
an argument and stores is as an instance variable.

So now, from within any object, I can call
instance.objectstore.get("mycfc") to return a reference to the
appropriate object.  My concern is that the object store uses references
to the application scope, so although I've been trying to avoid breaking
object encapsulation by passing the object through, I'm doing it by
using the object.  I'm thinking that I'm going to get stuck with the
page context bug?

Any thoughts?

Tim.


-------------------------------------------------------
RAWNET LTD - Internet, New Media and ebusiness Gurus.
Visit our new website at http://www.rawnet.com for
more information about our company, or call us free
anytime on 0800 294 24 24.
-------------------------------------------------------
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

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

Reply via email to