public class

InstrumentTask

extends BasicInstrumentationTask
java.lang.Object
   ↳ Task
     ↳ org.hibernate.tool.instrument.BasicInstrumentationTask
       ↳ org.hibernate.tool.instrument.cglib.InstrumentTask

This class is deprecated.
Per HHH-5451 support for cglib as a bytecode provider has been deprecated; use InstrumentTask instead

Class Overview

An Ant task for instrumenting persistent classes in order to enable field-level interception using CGLIB.

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

 
     
 
 
where lib.class.path is an ANT path reference containing all the required Hibernate and CGLIB 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 attribute on the task:

 
     ...
 
 
See the Hibernate manual regarding this option.

Summary

Public Constructors
InstrumentTask()
Protected Methods
Instrumenter buildInstrumenter(Logger logger, Instrumenter.Options options)
[Expand]
Inherited Methods
From class org.hibernate.tool.instrument.BasicInstrumentationTask
From class java.lang.Object
From interface org.hibernate.bytecode.buildtime.Instrumenter.Options

Public Constructors

public InstrumentTask ()

Protected Methods

protected Instrumenter buildInstrumenter (Logger logger, Instrumenter.Options options)