|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
groovy.lang.PropertyAccessInterceptor groovy.lang.Interceptor
public interface PropertyAccessInterceptor extends Interceptor
An interface that adds the ability to intercept property getters/setters
Method Summary | |
---|---|
Object
|
beforeGet(Object object, String property)
Intercepts a getXXX call and returns a result. |
void
|
beforeSet(Object object, String property, Object newValue)
Intercepts a setXXX call |
Methods inherited from interface Interceptor | |
---|---|
afterInvoke, beforeInvoke, doInvoke |
Method Detail |
---|
public Object beforeGet(Object object, String property)
object
- The target objectproperty
- The property to get
public void beforeSet(Object object, String property, Object newValue)
object
- The target objectproperty
- The property to setnewValue
- The new value
Copyright © 2003-2013 The Codehaus. All rights reserved.