站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

FieldFilter (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.bytecode.util
Interface FieldFilter

All Known Implementing Classes:
BasicInstrumentationTask.CustomFieldFilter

public interface FieldFilter

Used to determine whether a field reference should be instrumented.

Author:
Steve Ebersole

Method Summary
 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.
 

Method Detail

shouldInstrumentField

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.

shouldTransformFieldAccess

public boolean shouldTransformFieldAccess(String transformingClassName,
                                          String fieldOwnerClassName,
                                          String fieldName)
Should we instrument *access to* the given field. This differs from shouldInstrumentField(java.lang.String, java.lang.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.