|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldInterceptor
A field interceptor is notified when a monitored field asks for a value or receives a new value. A class implementing this interface is able to be notified of field accesses, and is able to inject a value to this field. The listener needs to be register on the instance manager.
Method Summary | |
---|---|
Object |
onGet(Object pojo,
String fieldName,
Object value)
This method is called when a GETFIELD operation is detected. |
void |
onSet(Object pojo,
String fieldName,
Object value)
This method is called when a PUTFIELD operation is detected, e.g. |
Method Detail |
---|
void onSet(Object pojo, String fieldName, Object value)
pojo
- the pojo object setting the valuefieldName
- the field namevalue
- the value passed to the fieldObject onGet(Object pojo, String fieldName, Object value)
pojo
- the pojo object getting the valuefieldName
- the field namevalue
- the value passed to the field (by the previous call)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |