Uses of Interface
org.aopalliance.instrument.Instrumentation
Packages that use Instrumentation
Package
Description
This package provides an API for program instrumentation.
-
Uses of Instrumentation in org.aopalliance.instrument
Methods in org.aopalliance.instrument that return InstrumentationModifier and TypeMethodDescriptionInstrumentor.addAfterCode(CodeLocator location, Code afterCode, Instrumentation before, Instrumentation after) Adds some code after a given method code body.Instrumentor.addAroundCode(CodeLocator location, Code aroundCode, String proceedMethodName, Instrumentation before, Instrumentation after) Adds some code around a given method code body.Instrumentor.addBeforeCode(CodeLocator location, Code beforeCode, Instrumentation before, Instrumentation after) Adds some code before a given method code body.Instrumentor.addClass(ClassLocator location, String className) Introduces a class into the class location (mixin).Instrumentor.addField(ClassLocator location, String name, String typeName, Code initializator) Adds a new field to the target class.Instrumentor.addInterface(ClassLocator location, String newInterfaceName) Adds a new implemented interface to a given class location.Instrumentor.addMethod(ClassLocator location, String name, String[] parameterTypeNames, String[] parameterNames, Code body) Adds a new method to the class location.Instrumentor.setSuperClass(ClassLocator location, String newSuperClassName) Sets or replaces the current superclass of a class location.Methods in org.aopalliance.instrument with parameters of type InstrumentationModifier and TypeMethodDescriptionInstrumentor.addAfterCode(CodeLocator location, Code afterCode, Instrumentation before, Instrumentation after) Adds some code after a given method code body.Instrumentor.addAroundCode(CodeLocator location, Code aroundCode, String proceedMethodName, Instrumentation before, Instrumentation after) Adds some code around a given method code body.Instrumentor.addBeforeCode(CodeLocator location, Code beforeCode, Instrumentation before, Instrumentation after) Adds some code before a given method code body.voidInstrumentor.undo(Instrumentation instrumentation) Cancels an instrumentation.Constructors in org.aopalliance.instrument with parameters of type InstrumentationModifierConstructorDescriptionInstrumentationError(Instrumentation instrumentation, Throwable cause) Sets a generic error message for an instrumentation error.UndoNotSupportedException(Instrumentation instrumentation) Sets a generic exception message for an instrumentation.