Before we choose, I'd like to deal with the issue Craig raised about the static function... If it were not a static but a member function, then it will be easier to form good cache keys without having to mess with, for example, PortletConfig extensions...
So, anybody have comments on why getHandle() is a static function? I'm in favor of changing back to member unless we hear the good reason to keep it static. Then I'll probably want to cache my portlets on page id + portlet id. - Glenn > -----Original Message----- > From: David Sean Taylor [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 13, 2002 10:42 AM > To: 'Jetspeed Developers List' > Subject: RE: A brief report on Jetspeed Portlet Caching > > > > > -----Original Message----- > > From: Glenn Golden [mailto:[EMAIL PROTECTED]] > > Sent: Monday, May 13, 2002 6:03 AM > > To: 'Jetspeed Developers List' > > Subject: RE: A brief report on Jetspeed Portlet Caching > > > > > > David - > > > > I'm unsure what Java does when calling a static member of a > > class if the class hierarchy defines two or more > > implementations of that member, each at different levels - > > does it take the most specific? > > Yes, since it was instantiated as the most-specific class. > > > > > If you duplicate your page to another page, and leave the > > portlet id's the same in each page, and have them both > > updating at the same time, it may fail to distinguish them. > > > > If a page is duplicated within jetspeed, for example, when a > > new user is created and the "turbine" page is copied, are the > > id's re-generated? I think that portlet Id is not defined to > > be system wide unique, just unique within the page. > > > > If you ensure that your portlet ids are unique system wide, > this isn't a > problem. > If you can't ensure that, then don't use the portlet-id for the key, > instead use the IdGeneratorService > > > We may want to add the portal page id as well as the portlet > > id to make the full instance id in the cache. > > > > Yes another solution, get the page id via RunData.getProfile > > Let me know what you all want to do with this. I believe the choices > are: > > - id > - page-id + id > - id-generator > > > > -- > To unsubscribe, e-mail: > <mailto:jetspeed-dev-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
