[jboss-dev-forums] [Design of JBossCache] - Re: PojoInstance: ref count & notification
supi
do-not-reply at jboss.com
Tue Apr 10 16:53:17 EDT 2007
"jason.greene at jboss.com" wrote :
| Regarding your change, a safer solution would be to add whatever information you need as independent internal properties.
|
Yes, I agree.
anonymous wrote :
| Assuming that remote pojo notifications worked, what information are you missing? [...]
| Why do you need to know if an object is multiply referenced?
|
Basically, your second question is the answer to the first one. I simply need to know whether this is the first attach or not and also if it is the last detach or not. Depending on this flag (in my interface, the two methods look like this:
| public void attach(Object inObject, boolean inIsFirst, boolean inIsLocal);
| public void detach(Object inObject, boolean inIsLast, boolean inIsLocal);
|
and are always post), an external processing unit can create related information, delete it, or do nothing. Of course, it would be great if something like this could be included. Unfortunately, I really need it now and my solution seems to work for the moment. It just bothers me that I had to change some of the internals (OTOH, I could also always switch to an entirely external reference counting scheme).
Cheers,
Basil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036128#4036128
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036128
More information about the jboss-dev-forums
mailing list