Package ome.tools.hibernate
Class EventMethodInterceptor
- java.lang.Object
-
- ome.tools.hibernate.EventMethodInterceptor
-
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public class EventMethodInterceptor extends java.lang.Object implements org.aopalliance.intercept.MethodInterceptorfilter which can be added to any event type in order to catch execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventMethodInterceptor.Actionstatic classEventMethodInterceptor.DisableAction
-
Field Summary
Fields Modifier and Type Field Description protected EventMethodInterceptor.Actionactionprotected booleanverbose
-
Constructor Summary
Constructors Constructor Description EventMethodInterceptor()EventMethodInterceptor(EventMethodInterceptor.Action action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectinvoke(org.aopalliance.intercept.MethodInvocation arg0)protected voidlog(java.lang.String msg)voidsetDebug(boolean debug)
-
-
-
Field Detail
-
verbose
protected boolean verbose
-
action
protected EventMethodInterceptor.Action action
-
-
Constructor Detail
-
EventMethodInterceptor
public EventMethodInterceptor()
-
EventMethodInterceptor
public EventMethodInterceptor(EventMethodInterceptor.Action action)
-
-
Method Detail
-
setDebug
public void setDebug(boolean debug)
-
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation arg0) throws java.lang.Throwable- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
java.lang.Throwable
-
log
protected void log(java.lang.String msg)
-
-