|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
groovy.lang.Interceptor groovy.lang.PropertyAccessInterceptor
public interface PropertyAccessInterceptor extends Interceptor
An interface that adds the ability to intercept property getters/setters
Method Summary | |
---|---|
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 |
Methods inherited from interface Interceptor | |
---|---|
afterInvoke, beforeInvoke, doInvoke |
Method Detail |
---|
public java.lang.Object beforeGet(java.lang.Object object, java.lang.String property)
object
- The target objectproperty
- The property to get
public void beforeSet(java.lang.Object object, java.lang.String property, java.lang.Object newValue)
object
- The target objectproperty
- The property to setnewValue
- The new value
Groovy Documentation