org.shiftone.jrat.inject.bytecode.asm
Class AsmInjectorStrategy

java.lang.Object
  extended by org.shiftone.jrat.inject.bytecode.asm.AsmInjectorStrategy
All Implemented Interfaces:
InjectorStrategy

public class AsmInjectorStrategy
extends java.lang.Object
implements InjectorStrategy


Field Summary
 
Fields inherited from interface org.shiftone.jrat.inject.bytecode.InjectorStrategy
COMMENT_FIELD_NAME, HANDLER_PREFIX, METHOD_POSTFIX
 
Constructor Summary
AsmInjectorStrategy()
           
 
Method Summary
 byte[] inject(byte[] rawClassData, TransformerOptions options)
          this method takes a byte array containing the data of a class, transforms the class, and returns a new byte array containing the data of a transformed / injected class.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsmInjectorStrategy

public AsmInjectorStrategy()
Method Detail

inject

public byte[] inject(byte[] rawClassData,
                     TransformerOptions options)
              throws java.lang.Exception
Description copied from interface: InjectorStrategy
this method takes a byte array containing the data of a class, transforms the class, and returns a new byte array containing the data of a transformed / injected class.

Specified by:
inject in interface InjectorStrategy
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object