com.uwyn.rife.continuations.instrument
Class ContinuationsBytecodeTransformer

java.lang.Object
  extended by com.uwyn.rife.continuations.instrument.ContinuationsBytecodeTransformer

public abstract class ContinuationsBytecodeTransformer
extends Object

Abstract class that transforms the bytecode of regular classes so that they support continuations functionalities.

Since:
1.6
Version:
$Revision: 3811 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Constructor Summary
ContinuationsBytecodeTransformer()
           
 
Method Summary
static byte[] transformIntoResumableBytes(ContinuationConfigInstrument configInstrument, byte[] rawBytes, String classname)
          Perform the class transformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuationsBytecodeTransformer

public ContinuationsBytecodeTransformer()
Method Detail

transformIntoResumableBytes

public static byte[] transformIntoResumableBytes(ContinuationConfigInstrument configInstrument,
                                                 byte[] rawBytes,
                                                 String classname)
                                          throws ClassNotFoundException
Perform the class transformation.

If the class doesn't implement the marker interface that is setup in the instrumentation config, the original bytes will be returned.

Parameters:
configInstrument - the configuration for the instrumentation
rawBytes - the raw bytes of the class to instrument
classname - the name of the class to instrument
Returns:
a byte array with the instrumented bytecode; or

the original raw byte array if the class didn't need to be instrumented

Throws:
ClassNotFoundException - when an error occurs during the inspection or transformation
Since:
1.6


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.