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

public Class Agent

extends Object
Class Inheritance
Imports
java.lang.instrument.ClassFileTransformer, .Instrumentation

Java 1.5 preMain agent to hook in the class pre processor Can be used with -javaagent:aspectjweaver.jar
Authors
Alexandre Vasseur, Alexander Kriegisch

Field Summary

Modifier and TypeField and Description
private static Instrumentation
s_instrumentation

The instrumentation instance

private static ClassFileTransformer
s_transformer

The ClassFileTransformer wrapping the weaver

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
agentmain(String options, Instrumentation instrumentation)

public static Instrumentation
getInstrumentation()

Returns the Instrumentation system level instance

public static void
premain(String options, Instrumentation instrumentation)

JSR-163 preMain Agent entry method

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

s_instrumentationback to summary
private static Instrumentation s_instrumentation

The instrumentation instance

s_transformerback to summary
private static ClassFileTransformer s_transformer

The ClassFileTransformer wrapping the weaver

Constructor Detail

Agentback to summary
public Agent()

Method Detail

agentmainback to summary
public static void agentmain(String options, Instrumentation instrumentation)
getInstrumentationback to summary
public static Instrumentation getInstrumentation()

Returns the Instrumentation system level instance

premainback to summary
public static void premain(String options, Instrumentation instrumentation)

JSR-163 preMain Agent entry method