Top Description Fields Constructors Methods
org.aspectj.weaver.loadtime

public Class ClassPreProcessorAgentAdapter

extends Object
implements ClassFileTransformer
Class Inheritance
All Implemented Interfaces
java.lang.instrument.ClassFileTransformer
Imports
java.lang.instrument.ClassFileTransformer, .IllegalClassFormatException, java.security.ProtectionDomain

Java 1.5 adapter for class pre processor
Authors
Alexandre Vasseur, Andy Clement

Field Summary

Modifier and TypeField and Description
private static ClassPreProcessor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the woven bytes
transform
(ClassLoader
the defining class loader
loader
,
String
the name of class being loaded
className
,
Class<?>
is set when hotswap is being attempted
classBeingRedefined
,
ProtectionDomain
the protection domain for the class being loaded
protectionDomain
,
byte[]
the incoming bytes (before weaving)
bytes
)

Overrides default java.lang.instrument.ClassFileTransformer.transform.

Invokes the weaver to modify some set of input bytes.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classPreProcessorback to summary
private static ClassPreProcessor classPreProcessor

Constructor Detail

ClassPreProcessorAgentAdapterback to summary
public ClassPreProcessorAgentAdapter()

Method Detail

transformback to summary
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] bytes) throws IllegalClassFormatException

Overrides default java.lang.instrument.ClassFileTransformer.transform.

Invokes the weaver to modify some set of input bytes.

Parameters
loader:ClassLoader

the defining class loader

className:String

the name of class being loaded

classBeingRedefined:Class<?>

is set when hotswap is being attempted

protectionDomain:ProtectionDomain

the protection domain for the class being loaded

bytes:byte[]

the incoming bytes (before weaving)

Returns:byte[]

the woven bytes

Annotations
@Override
Exceptions
IllegalClassFormatException:

Doc from java.lang.instrument.ClassFileTransformer.transform.

if the input does not represent a well-formed class file