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.MethodInterceptor
filter which can be added to any event type in order to catch execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EventMethodInterceptor.Action
static class
EventMethodInterceptor.DisableAction
-
Field Summary
Fields Modifier and Type Field Description protected EventMethodInterceptor.Action
action
protected boolean
verbose
-
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.Object
invoke(org.aopalliance.intercept.MethodInvocation arg0)
protected void
log(java.lang.String msg)
void
setDebug(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:
invoke
in interfaceorg.aopalliance.intercept.MethodInterceptor
- Throws:
java.lang.Throwable
-
log
protected void log(java.lang.String msg)
-
-