org.jboss.aop.instrument
Interface HotSwapper


public interface HotSwapper

HotSwapper represents a class capable of hot swapping code. Every hot swap technique to be applied at JBoss AOP must implement this interface.

Author:
Flavia Rainone

Method Summary
 void hotSwap()
          Performs the hot swap of classes previously registered through registerChange method.
 void registerChange(Class<?> clazz, byte[] classCode)
          This method register class byte codes changes.
 

Method Detail

registerChange

void registerChange(Class<?> clazz,
                    byte[] classCode)
This method register class byte codes changes. Every time the implementation of a class has to be hot swapped, this method must called. When the client is done registering all the bytecode changes, it must call hotSwap in order to perform the hot swap of the registered changes.

Parameters:
clazz - the class whose byte codes will be hot swapped.
classCode - the new byte codes of clazz.
See Also:
hotSwap

hotSwap

void hotSwap()
Performs the hot swap of classes previously registered through registerChange method.

See Also:
register


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.