01: package org.hibernate.bytecode.javassist;
02:
03: /**
04: * Contract for deciding whether fields should be read and/or write intercepted.
05: *
06: * @author Muga Nishizawa
07: */
08: public interface FieldFilter {
09: /**
10: * Should the given field be read intercepted?
11: *
12: * @param desc
13: * @param name
14: * @return true if the given field should be read intercepted; otherwise
15: * false.
16: */
17: boolean handleRead(String desc, String name);
18:
19: /**
20: * Should the given field be write intercepted?
21: *
22: * @param desc
23: * @param name
24: * @return true if the given field should be write intercepted; otherwise
25: * false.
26: */
27: boolean handleWrite(String desc, String name);
28: }
|