Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Standard interceptors ?
class Decorated {
@Intercepted(MyInterceptor.class)
def intercepted(String something) {
println "within method"
}
}
class MyInterceptor implements Interceptor {
@Override
def before(def theObject, Method theMethod, List args) {
println "before $theMethod.name"
}
@Override
def after(def theObject, Method theMethod, List args) {
println "after $theMethod.name"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.