org.aspectj.weaver.bcel
Class UnwovenClassFileWithThirdPartyManagedBytecode

java.lang.Object
  extended by org.aspectj.weaver.bcel.UnwovenClassFile
      extended by org.aspectj.weaver.bcel.UnwovenClassFileWithThirdPartyManagedBytecode
All Implemented Interfaces:
IUnwovenClassFile

public class UnwovenClassFileWithThirdPartyManagedBytecode
extends UnwovenClassFile

Author:
colyer This subclass of UnwovenClassFile allows a third-party to manage the actual bytes that comprise the class. This means the third party can return a reference to an existing array, or create the bytes on demand, or apply any other strategy that makes sense. By refering to bytes held elsewhere, the goal is to reduce the overall memory consumption by not holding a copy.

Nested Class Summary
static interface UnwovenClassFileWithThirdPartyManagedBytecode.IByteCodeProvider
           
 
Nested classes/interfaces inherited from class org.aspectj.weaver.bcel.UnwovenClassFile
UnwovenClassFile.ChildClass
 
Constructor Summary
UnwovenClassFileWithThirdPartyManagedBytecode(java.lang.String filename, java.lang.String classname, UnwovenClassFileWithThirdPartyManagedBytecode.IByteCodeProvider provider)
           
 
Method Summary
 byte[] getBytes()
           
 
Methods inherited from class org.aspectj.weaver.bcel.UnwovenClassFile
getClassName, getClassNameAsChars, getFilename, getJavaClass, makeInnerFileName, setClassNameAsChars, toString, writeUnchangedBytes, writeWovenBytes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnwovenClassFileWithThirdPartyManagedBytecode

public UnwovenClassFileWithThirdPartyManagedBytecode(java.lang.String filename,
                                                     java.lang.String classname,
                                                     UnwovenClassFileWithThirdPartyManagedBytecode.IByteCodeProvider provider)
Method Detail

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface IUnwovenClassFile
Overrides:
getBytes in class UnwovenClassFile