Adds the ability to intercept property getters/setters.
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
beforeGet(java.lang.Object object, java.lang.String property, InvocationCallback callback) Intercepts a getXXX call and returns a result. |
|
void |
beforeSet(java.lang.Object object, java.lang.String property, java.lang.Object newValue, InvocationCallback callback) Intercepts a setXXX call. |
Methods inherited from class | Name |
---|---|
interface Interceptor |
afterInvoke, beforeInvoke |
Intercepts a getXXX call and returns a result. The result is replaced by the real value if doGet() return false
object
- The target objectproperty
- The property to getcallback
- The callback objectIntercepts a setXXX call.
object
- The target objectproperty
- The property to setnewValue
- The new valuecallback
- The callback object