Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    public 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

    public void hotSwap()

  Performs the hot swap of classes previously registered through `registerChange` method.

  See Also:
    `register`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 JBoss Inc. All Rights Reserved.