org.sourceforge.jemm.weaver
Class WeaverImpl

java.lang.Object
  extended by org.sourceforge.jemm.weaver.WeaverImpl
All Implemented Interfaces:
Weaver

public class WeaverImpl
extends java.lang.Object
implements Weaver

A class byte code enhancer facade to the Javassist compilation process that works on individual classes.

Author:
Paul

Constructor Summary
WeaverImpl()
           
 
Method Summary
 byte[] enhance(byte[] byteCode)
          Enhances the pass class (represented as its byte code)/ Already enhanced classes should be ignored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeaverImpl

public WeaverImpl()
Method Detail

enhance

public byte[] enhance(byte[] byteCode)
               throws CompilerException
Description copied from interface: Weaver
Enhances the pass class (represented as its byte code)/ Already enhanced classes should be ignored.

Specified by:
enhance in interface Weaver
Returns:
The enhanced byte code, or null for no enhancement.
Throws:
CompilerException - On errors handling the given classes


Copyright © 2009. All Rights Reserved.