Depends on the scenario. If they're singletons, obviously they belong in the application, and not created willy-nilly. However, one-time use objects, or objects that are not thread safe should be created on-demand in the narrowest scope reasonable (the listener method's local scope, most likely).
cheers, barneyb On 7/27/05, Joe Ferraro <[EMAIL PROTECTED]> wrote: > > > > You have a listener that needs to access another object. Would it be better > to add objects to the application via the setProperty method in a plugin and > then access them through getProperty or to create the object in the listener > itself? -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 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). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
