JBoss.org Community Documentation

13.2. Preparing Array Fields

If we want to intercept an array's elements, that array field needs to be woven, using either a prepare or a bind expression. If that field is within a class picked out by an arrayreplacement expression it gets all the hooks for arrayreplacement to take place. The following xml along with the previous arrayreplacement weaves org.acme.POJOWithArray.ints for array element interception.

    
   <prepare expr="field(int[] org.acme.POJOWithArray->ints)"/>