Package org.gwizard.logging
Class LogCallInterceptor
java.lang.Object
org.gwizard.logging.LogCallInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public class LogCallInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor
Guice AOP interceptor which looks for @LogCall annotation on methods to log method calls.
Put this in your Guice module configure():
bindInterceptor(Matchers.any(), Matchers.annotatedWith(LogCall.class), new LoggingInterceptor());
- Author:
- Jeff Schnitzer
-
Constructor Summary
Constructors Constructor Description LogCallInterceptor() -
Method Summary
Modifier and Type Method Description java.lang.Objectinvoke(org.aopalliance.intercept.MethodInvocation inv)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LogCallInterceptor
public LogCallInterceptor()
-
-
Method Details
-
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation inv) throws java.lang.Throwable- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
java.lang.Throwable
-