Class InstrumentTask

All Implemented Interfaces:
Instrumenter.Options

public class InstrumentTask extends BasicInstrumentationTask
An Ant task for instrumenting persistent classes in order to enable field-level interception using Javassist.

In order to use this task, typically you would define a a taskdef similiar to:

 
     
 
 
where lib.class.path is an ANT path reference containing all the required Hibernate and Javassist libraries.

And then use it like:

 
     
         
         ...
     
 
 
where the nested ANT fileset includes the class you would like to have instrumented.

Optionally you can chose to enable "Extended Instrumentation" if desired by specifying the extended attriubute on the task:

 
     ...
 
 
See the Hibernate manual regarding this option.