OK I was wrong on this because I was actually missing a crucial detail: the
proxy factory deletes the temp CFC as soon as it is instantiated. This is so
you don't end up with a ton of generated CFCs on the disk. So it would (in
fact, it has to) regenerate the file to disk each time. Another reason
advices are almost always applied to singletons. So...we're back to the
question of whether you really need to be applying the advice to a
per-request object.

On 10/5/07, Brian Kotek <[EMAIL PROTECTED]> wrote:
>
> All it does is read the metadata for the component being proxied and then
> write out a CFC file that has those methods and arguments, but adds in calls
> to whatever AOP advices you have specified. So I don't see any reason why it
> would keep writing it out to disk each times since it would never change
> between instantiations.
>
> I'm still not sure you actually need to apply the AOP advice to the
> transient object though. You haven't actually stated what you want to do, so
> it's hard to say. But in my experience, the AOP is applied at the service
> object level (which are singletons). I'm wondering if you really need to do
> it the way you are proposing.
>
> On 10/5/07, henry ho <[EMAIL PROTECTED]> wrote:
> >
> > > creating and writing the dynamic CFC should be
> > a one-shot deal
> >
> > I really hope so.. This is what I'm not sure of.  Because it seems like
> > in order to generate a dynamically generated function, it requires using
> > CFFILE to write the .cfm/.cfc, and if this is required every time, it is
> > going to be very costly in performance...
> >
> > Henry
> >
> >
> >
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290376
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to