public interface FieldInterceptor
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
onGet(java.lang.Object pojo,
java.lang.String fieldName,
java.lang.Object value)
This method is called when a GETFIELD operation is detected.
|
void |
onSet(java.lang.Object pojo,
java.lang.String fieldName,
java.lang.Object value)
This method is called when a PUTFIELD operation is detected,
e.g.
|
void onSet(java.lang.Object pojo, java.lang.String fieldName, java.lang.Object value)
pojo
- the pojo object setting the valuefieldName
- the field namevalue
- the value passed to the fieldjava.lang.Object onGet(java.lang.Object pojo, java.lang.String fieldName, java.lang.Object value)
pojo
- the pojo object getting the valuefieldName
- the field namevalue
- the value passed to the field (by the previous call)Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.