package abdi.formulario.cdi;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.interceptor.AroundInvoke;
import javax.interceptor.Interceptor;
import javax.interceptor.InvocationContext;

/**
 *
 * @author Rogerio.Rodrigues
 */
@Interceptor
@Logged
public class LogInterceptor {

    @AroundInvoke
    public Object log(InvocationContext context) throws Exception {
        Logger
                .getLogger(getClass().getName())
                .log(
                        Level.INFO, "M\u00e9todo: {0} interceptado",
                        context.getMethod().getName()
                );
        return context.proceed();
    }
}

@@ -225,16 +225,81 @@
 %0A/**%0D%0A *
+ Classe responsavel por realizar o log de metodos e classes.%0D%0A * 
 %0D%0A * @au
@@ -383,16 +383,43 @@
 or %7B%0D%0A%0D%0A
+    /**%0D%0A     * %0D%0A     */%0D%0A
     @Aro

Add comentarios.