Top Description Inners Fields Constructors Methods
org.hibernate.tool.instrument

public abstract Class BasicInstrumentationTask

extends Task
implements Options
Class Inheritance
All Implemented Interfaces
org.hibernate.bytecode.buildtime.Instrumenter.Options
Known Direct Subclasses
org.hibernate.tool.instrument.cglib.InstrumentTask, org.hibernate.tool.instrument.javassist.InstrumentTask
Imports
org.apache.tools.ant.Task, .BuildException, .Project, .DirectoryScanner, org.apache.tools.ant.types.FileSet, org.hibernate.bytecode.buildtime.Instrumenter, .Logger, java.util.List, .ArrayList, .Iterator, .Set, .HashSet, java.io.File

Super class for all Hibernate instrumentation tasks. Provides the basic templating of how instrumentation should occur; subclasses simply plug in to that process appropriately for the given bytecode provider.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class

Field Summary

Modifier and TypeField and Description
private boolean
private List<E>
private final BasicInstrumentationTask.LoggerBridge
private boolean
Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
protected abstract Instrumenter
private Set<E>
public void
execute()

Overrides org.apache.tools.ant.Task.execute.

Called by the project to let the task do its work.
protected final Iterator<E>
public boolean
public boolean
public final boolean
public void
setExtended(boolean extended)

public void
setVerbose(boolean verbose)

Inherited from org.apache.tools.ant.Task:
bindToOwnergetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

extendedback to summary
private boolean extended
filesetsback to summary
private List<E> filesets
loggerback to summary
private final BasicInstrumentationTask.LoggerBridge logger
verboseback to summary
private boolean verbose

Constructor Detail

BasicInstrumentationTaskback to summary
public BasicInstrumentationTask()

Method Detail

addFilesetback to summary
public void addFileset(FileSet set)
buildInstrumenterback to summary
protected abstract Instrumenter buildInstrumenter(Logger logger, Instrumenter.Options options)
collectSpecifiedFilesback to summary
private Set<E> collectSpecifiedFiles()
executeback to summary
public void execute() throws BuildException

Overrides org.apache.tools.ant.Task.execute.

Doc from org.apache.tools.ant.Task.execute.

Called by the project to let the task do its work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running "ant target1 target2" will run all tasks in target3 twice.

Exceptions
BuildException:
if something goes wrong with the build.
filesetsback to summary
protected final Iterator<E> filesets()
isExtendedback to summary
public boolean isExtended()
isVerboseback to summary
public boolean isVerbose()
performExtendedInstrumentationback to summary
public final boolean performExtendedInstrumentation()

Implements org.hibernate.bytecode.buildtime.Instrumenter.Options.performExtendedInstrumentation.

setExtendedback to summary
public void setExtended(boolean extended)
setVerboseback to summary
public void setVerbose(boolean verbose)
org.hibernate.tool.instrument back to summary

protected Class BasicInstrumentationTask.LoggerBridge

extends Object
implements Logger
Class Inheritance
  • java.lang.Object
  • org.hibernate.tool.instrument.BasicInstrumentationTask.LoggerBridge
All Implemented Interfaces
org.hibernate.bytecode.buildtime.Logger

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LoggerBridgeback to summary
protected LoggerBridge()

Method Detail

debugback to summary
public void debug(String message)

Implements org.hibernate.bytecode.buildtime.Logger.debug.

errorback to summary
public void error(String message)

Implements org.hibernate.bytecode.buildtime.Logger.error.

infoback to summary
public void info(String message)

Implements org.hibernate.bytecode.buildtime.Logger.info.

traceback to summary
public void trace(String message)

Implements org.hibernate.bytecode.buildtime.Logger.trace.

warnback to summary
public void warn(String message)

Implements org.hibernate.bytecode.buildtime.Logger.warn.