1 8 package org.codehaus.aspectwerkz.extension.hotswap; 9 10 import java.util.Iterator ; 11 12 import org.codehaus.aspectwerkz.transform.inlining.compiler.JoinPointFactory; 13 import org.codehaus.aspectwerkz.transform.inlining.deployer.Redefiner; 14 import org.codehaus.aspectwerkz.transform.inlining.deployer.ChangeSet; 15 16 21 public class HotSwapRedefiner implements Redefiner { 22 23 28 public void redefine(final ChangeSet changeSet) { 29 for (Iterator it = changeSet.getElements().iterator(); it.hasNext();) { 30 ChangeSet.Element changeSetElement = (ChangeSet.Element) it.next(); 31 final byte[] bytecode = JoinPointFactory.redefineJoinPoint(changeSetElement.getCompilationInfo()); 32 HotSwapClient.hotswap(changeSetElement.getJoinPointInfo().getJoinPointClass(), bytecode); 33 } 34 } 35 } 36 | Popular Tags |