org.hibernate.tool.instrument

Class BasicInstrumentationTask

Known Direct Subclasses:
InstrumentTask, InstrumentTask

public abstract class BasicInstrumentationTask
extends Task

Super class for all Hibernate instrumentation tasks. Provides the basic templating of how instrumentation should occur.
Author:
Steve Ebersole

Nested Class Summary

protected class
BasicInstrumentationTask.CustomFieldFilter
protected class
BasicInstrumentationTask.Logger

Field Summary

protected BasicInstrumentationTask.Logger
logger

Method Summary

void
addFileset(FileSet set)
protected boolean
checkMagic(File file, long magic)
void
execute()
protected Iterator
filesets()
protected abstract ClassDescriptor
getClassDescriptor(byte[] byecode)
protected abstract ClassTransformer
getClassTransformer(ClassDescriptor descriptor)
protected boolean
isBeingIntrumented(String className)
protected boolean
isClassFile(File file)
boolean
isExtended()
protected boolean
isJarFile(File file)
boolean
isVerbose()
protected void
processClassFile(File file)
protected void
processFile(File file)
protected void
processJarFile(File file)
void
setExtended(boolean extended)
void
setVerbose(boolean verbose)

Field Details

logger

protected final BasicInstrumentationTask.Logger logger

Method Details

addFileset

public void addFileset(FileSet set)

checkMagic

protected final boolean checkMagic(File file,
                                   long magic)
            throws IOException

execute

public void execute()
            throws BuildException

filesets

protected final Iterator filesets()

getClassDescriptor

protected abstract ClassDescriptor getClassDescriptor(byte[] byecode)
            throws Exception

getClassTransformer

protected abstract ClassTransformer getClassTransformer(ClassDescriptor descriptor)

isBeingIntrumented

protected boolean isBeingIntrumented(String className)

isClassFile

protected final boolean isClassFile(File file)
            throws IOException

isExtended

public boolean isExtended()

isJarFile

protected final boolean isJarFile(File file)
            throws IOException

isVerbose

public boolean isVerbose()

processClassFile

protected void processClassFile(File file)
            throws Exception

processFile

protected void processFile(File file)
            throws Exception

processJarFile

protected void processJarFile(File file)
            throws Exception

setExtended

public void setExtended(boolean extended)

setVerbose

public void setVerbose(boolean verbose)