protected class

AbstractInstrumenter.CustomFieldFilter

extends Object
implements FieldFilter
java.lang.Object
   ↳ org.hibernate.bytecode.buildtime.AbstractInstrumenter.CustomFieldFilter

Class Overview

Allows control over what exacctly to transform.

Summary

Public Constructors
AbstractInstrumenter.CustomFieldFilter(ClassDescriptor descriptor, Set classNames)
Public Methods
boolean shouldInstrumentField(String className, String fieldName)
Should this field definition be instrumented?
boolean shouldTransformFieldAccess(String transformingClassName, String fieldOwnerClassName, String fieldName)
Should we instrument *access to* the given field.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.bytecode.util.FieldFilter

Public Constructors

public AbstractInstrumenter.CustomFieldFilter (ClassDescriptor descriptor, Set classNames)

Public Methods

public boolean shouldInstrumentField (String className, String fieldName)

Should this field definition be instrumented?

Parameters
className The name of the class currently being processed
fieldName The name of the field being checked.
Returns
  • True if we should instrument this field.

public boolean shouldTransformFieldAccess (String transformingClassName, String fieldOwnerClassName, String fieldName)

Should we instrument *access to* the given field. This differs from shouldInstrumentField(String, String) in that here we are talking about a particular usage of a field.

Parameters
transformingClassName The class currently being transformed.
fieldOwnerClassName The name of the class owning this field being checked.
fieldName The name of the field being checked.
Returns
  • True if this access should be transformed.