access="package" grants execution of the function of a component from the components which are in the same directory or inheritance tree with it.
/ComponentA ----method1 (cannot access methodX) /ComponentB extends directory.ComponentC ----method1 (can access methodX) /directory/ComponentC ----package methodX (can access methodX) /directory/ComponentD ----methodI (can access methodX) "Package methodX()" can be invoked from only ComponentB, ComponentD and (of course) ComponentC Regards, Murat. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Peter J. Farrell > Sent: Tuesday, March 15, 2005 1:51 PM > To: CFCDev@cfczone.org > Subject: [CFCDev] access="package" in cffunction useful in BOs/Beans? > > What are the advantages to setting access="package" in your > getters/setters in BOs/Beans? Usually, I just set my > getters/setters to > access="public", but I noticed them in mach-ii.info sample > app. Maybe > I'm just over sleeply from being at work too long for deadlines. > Anything to clear this up would be helpful. > > I read the definition on livedocs and it appears to limit > that comsumer > of the method to the component that instantiated the bean or any > component that extends the instantiating component. > > .pjf > > -- > Peter J. Farrell :: Maestro Publishing > > blog :: http://blog.maestropublishing.com > email :: [EMAIL PROTECTED] > phone :: 651-204-0513 > > > Press <ALT-H> for extra file points on this board! > > -- > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to cfcdev@cfczone.org 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). > > An archive of the CFCDev list is available at > www.mail-archive.com/cfcdev@cfczone.org > > > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org 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). An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org