Hi,
I saw the codes of Global Cache service, I noticed the following lines in
RefreshableCachedObject.java:
public void refresh()
{
Refreshable r = (Refreshable)getContents();
synchronized (this)
{
r.refresh();
created = created + getExpires();
}
}
I think this line��Refreshable r = (Refreshable)getContents();
will throw a ClassCastException if the object put in the cache doesn't
implment refresh method in Refreshable interface. Do you guys initially want
the object which can be put into Global Cache to implement that interface?
Regards
lvjin
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]