Kabir, I need more to work out a prototype from PojoCache side once alpha2 is out this
week (or early next week).
But here are my initial questions:
1. We have discussed multi-dimensional array before. Can your prototyoe handle it now?
2. I have some reservation regarding to per-VM scope of array interception.
a) What happens when I have multiple instances in the VM. E.g.,
| p1 = new POJO();
|
| p2 = new POJO();
|
| ...
|
| p1.array[2] = 10;
|
| p2.array[2] = 20;
|
can you differentiate this?
3. Since we don't distinguish the target object, what happens when I have same array
field name in different POJO? E.g.,
| class POJO_A
| {
| int[] array;
| }
|
and
| class POJO_B
| {
| int[] array;
| }
|
Will I have a problem here?
4. With per-VM scope, we are saying this is like a static field, I think. So naturally, we
can't use the "Region" concept that is in JBoss Cache. We will just need to
document that.
5. Finally, upon invocation in MyArrayInterceptor, do I have access to the array reference
itself, e.g., POJO.array? Can I get it from the ArrayRegistry during invocation? I need
this such that I can tie the array to the internal cache store.
Thanks,
-Ben
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997501#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...