com.uwyn.rife.site.instrument
Class MetaDataBytecodeTransformer
java.lang.Object
com.uwyn.rife.site.instrument.MetaDataBytecodeTransformer
public abstract class MetaDataBytecodeTransformer
- extends Object
This utility class provides an entrance method to modify the bytecode of a
class so that meta data from a sibling class is merged into the first class.
Basically, this automatically creates an instance of the meta data class and
stores it as a field of the modified class. All the interfaces of the meta
data class are also automatically implemented by the modified class by
delegating all the method calls to the added field instance.
WARNING: this class is not supposed to be used directly, it is made public
since the general RIFE EngineClassLoader has to be able to access it.
- Since:
- 1.6
- Version:
- $Revision: 3678 $
- Author:
- Geert Bevin (gbevin[remove] at uwyn dot com)
|
Method Summary |
static byte[] |
mergeMetaDataIntoBytes(byte[] origBytes,
Class metaData)
Performs the actual merging of the meta data class' functionalities into
the bytes of the class that were provided. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaDataBytecodeTransformer
public MetaDataBytecodeTransformer()
mergeMetaDataIntoBytes
public static byte[] mergeMetaDataIntoBytes(byte[] origBytes,
Class metaData)
- Performs the actual merging of the meta data class' functionalities into
the bytes of the class that were provided.
- Parameters:
origBytes - the bytes that have to be modiedmetaData - the meta data classes that will be merged into it
- Returns:
- the modified bytes
- Since:
- 1.6
Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.