|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.codehaus.groovy.grails.commons.metaclass.Interceptor org.codehaus.groovy.grails.commons.metaclass.PropertyAccessInterceptor
public interface PropertyAccessInterceptor extends Interceptor
Adds the ability to intercept property getters/setters.
Method Summary | |
---|---|
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 interface Interceptor | |
---|---|
afterInvoke, beforeInvoke |
Method Detail |
---|
public java.lang.Object beforeGet(java.lang.Object object, java.lang.String property, InvocationCallback callback)
object
- The target objectproperty
- The property to getcallback
- The callback object
public void beforeSet(java.lang.Object object, java.lang.String property, java.lang.Object newValue, InvocationCallback callback)
object
- The target objectproperty
- The property to setnewValue
- The new valuecallback
- The callback object
Groovy Documentation