ome.tools.hibernate
Class EventMethodInterceptor

java.lang.Object
  extended by ome.tools.hibernate.EventMethodInterceptor
All Implemented Interfaces:
Advice, Interceptor, MethodInterceptor

public class EventMethodInterceptor
extends Object
implements MethodInterceptor

filter which can be added to any event type in order to catch execution.


Nested Class Summary
static class EventMethodInterceptor.Action
           
static class EventMethodInterceptor.DisableAction
           
 
Field Summary
protected  EventMethodInterceptor.Action action
           
protected  boolean verbose
           
 
Constructor Summary
EventMethodInterceptor()
           
EventMethodInterceptor(EventMethodInterceptor.Action action)
           
 
Method Summary
 Object invoke(MethodInvocation arg0)
           
protected  void log(String msg)
           
 void setDebug(boolean debug)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 Object invoke(MethodInvocation arg0)
              throws Throwable
Specified by:
invoke in interface MethodInterceptor
Throws:
Throwable

log

protected void log(String msg)


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.