On 10/26/05, Andrew Scott [EMAIL PROTECTED] wrote:
cfset Application.userFactory =
CreateObject('component','com.framework.user') /
Now through the code I will make reference to it like such.
cfset Application.userFactory().AddUser(UserObject) /
cfset
cfset
Application.userFactory = CreateObject(component,com.framework.user)
/
cfset
Application.userFactory().AddUser(UserObject) /
cfset
Application.userFactory().DeleteUSer(UserObject) /
bit confused by this code.
1) userFactory is not a
function.
2) why is the factory performing
.
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Kerry
Sent: Thursday, 27 October 2005
5:49 PM
To: CFCDev@cfczone.org
Subject: RE: [CFCDev] Race
Conditions when scoped in the Application variable
cfset Application.userFactory =
CreateObject(component
October 2005 4:56 PM
To: CFCDev@cfczone.org
Subject: Re: [CFCDev] Race Conditions when scoped in the Application
variable
On 10/26/05, Andrew Scott [EMAIL PROTECTED] wrote:
cfset Application.userFactory =
CreateObject('component','com.framework.user') /
Now through the code I will make reference
()!--- return a new
instance of the user object ---
-Original Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]On Behalf Of Andrew
ScottSent: 27 October 2005 09:39To:
CFCDev@cfczone.orgSubject: RE: [CFCDev] Race Conditions when scoped
in the Application variable
Emerson
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Kerry
Sent: Thursday, 27 October 2005
6:43 PM
To: CFCDev@cfczone.org
Subject: RE: [CFCDev] Race
Conditions when scoped in the Application variable
My main query was really why is the
factory performing crud
Along those lines, why is variables.oUser adding and deleting users?
-Dave
[EMAIL PROTECTED] 10/27/05 3:48 AM
cfset Application.userFactory = CreateObject('component','
com.framework.user') /
cfset Application.userFactory().AddUser(UserObject) /
cfset
On 10/27/05, Kerry [EMAIL PROTECTED] wrote:
2) why is the factory performing CRUD operations? the factory should return
an instance of the user component?
It is NOT doing CRUD. Everyone seems to have jumped on addUser() and
deleteUser() without actually reading what Andrew said about the
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sean Corfield
Sent: Friday, 28 October 2005 5:10 AM
To: CFCDev@cfczone.org
Subject: Re: [CFCDev] Race Conditions when scoped in the Application
variable
On 10/27/05, Kerry [EMAIL PROTECTED] wrote:
2) why is the factory performing CRUD operations