Intercept when Elements of an Array are Matched
Array Element Interception To intercept when elements of an array is matched we add the following to our jboss-aop.xml: This first arrayreplacement says that whenever an array is being acessed in the class Woven we should delegate those accesses on to JBoss AOP. Next we have a prepare statement that picks out an array field. Since that field belongs to a class picked out by arrayreplacement, that field gets registered for array element interception. Finally, we have a arraybind that says that whenever an array whose access has been woven and intercepted intercepted we should apply ArrayInterceptor.