Top Description Constructors Methods
org.hibernate.tool.instrument.javassist

public Class InstrumentTask

extends BasicInstrumentationTask
Class Inheritance
Imports
org.hibernate.bytecode.buildtime.Instrumenter, .JavassistInstrumenter, .Logger, org.hibernate.tool.instrument.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:

<taskdef name="instrument" classname="org.hibernate.tool.instrument.javassist.InstrumentTask">
    <classpath refid="lib.class.path"/>
</taskdef>
where lib.class.path is an ANT path reference containing all the required Hibernate and Javassist libraries.

And then use it like:

<instrument verbose="true">
    <fileset dir="${testclasses.dir}/org/hibernate/test">
        <include name="yadda/yadda/**"/>
        ...
    </fileset>
</instrument>
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:

<instrument verbose="true" extended="true">
    ...
</instrument>
See the Hibernate manual regarding this option.
Authors
Muga Nishizawa, Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Instrumenter
Inherited from org.hibernate.tool.instrument.BasicInstrumentationTask:
addFilesetexecutefilesetsisExtendedisVerboseperformExtendedInstrumentationsetExtendedsetVerbose

Constructor Detail

InstrumentTaskback to summary
public InstrumentTask()

Method Detail

buildInstrumenterback to summary
protected Instrumenter buildInstrumenter(Logger logger, Instrumenter.Options options)

Implements abstract org.hibernate.tool.instrument.BasicInstrumentationTask.buildInstrumenter.