public interface PropertyAccessInterceptor extends Interceptor
An interface that adds the ability to intercept property getters/setters
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
beforeGet(java.lang.Object object,
java.lang.String property)
Intercepts a getXXX call and returns a result.
|
void |
beforeSet(java.lang.Object object,
java.lang.String property,
java.lang.Object newValue)
Intercepts a setXXX call
|
afterInvoke, beforeInvoke, doInvoke
java.lang.Object beforeGet(java.lang.Object object, java.lang.String property)
object
- The target objectproperty
- The property to getvoid beforeSet(java.lang.Object object, java.lang.String property, java.lang.Object newValue)
object
- The target objectproperty
- The property to setnewValue
- The new value