[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Array interception needed for jboss cache

ben.wang@jboss.com do-not-reply at jboss.com
Wed Jan 3 06:49:02 EST 2007


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#3997501

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997501



More information about the jboss-dev-forums mailing list