package com.blogspot.diegopacheco.groovy.interceptor import org.codehaus.groovy.runtime.* /** * Classe de testes com o Interceptor padrão do Groovy. * * @author Diego Pacheco * @since 17/02/2009 * @version 1.0 * */ public class GroovyInterceptorTest{ public static void main(String []args){ def proxy = ProxyMetaClass.getInstance( DumieClass ) proxy.interceptor = new GroovyInterceptor() proxy.use{ new DumieClass().fazAlgo() } } }