ome.services.util
Class ServiceHandler

java.lang.Object
  extended by ome.services.util.ServiceHandler
All Implemented Interfaces:
EventListener, Advice, Interceptor, MethodInterceptor, org.springframework.context.ApplicationListener

public class ServiceHandler
extends Object
implements MethodInterceptor, org.springframework.context.ApplicationListener


Constructor Summary
ServiceHandler(CurrentDetails cd)
           
ServiceHandler(CurrentDetails cd, long methodTimeWarn, long methodTimeError)
           
 
Method Summary
protected  void cleanup()
           
protected  Throwable getAndLogException(Throwable t)
           
 String getResultsString(Object o, IdentityHashMap<Object,String> cache)
          public for testing purposes.
 Object invoke(MethodInvocation arg0)
           
 void onApplicationEvent(org.springframework.context.ApplicationEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceHandler

public ServiceHandler(CurrentDetails cd)

ServiceHandler

public ServiceHandler(CurrentDetails cd,
                      long methodTimeWarn,
                      long methodTimeError)
Method Detail

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent arg0)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

invoke

public Object invoke(MethodInvocation arg0)
              throws Throwable
Specified by:
invoke in interface MethodInterceptor
Throws:
Throwable
See Also:
MethodInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)

cleanup

protected void cleanup()

getAndLogException

protected Throwable getAndLogException(Throwable t)

getResultsString

public String getResultsString(Object o,
                               IdentityHashMap<Object,String> cache)
public for testing purposes.



OmeroJava Api

Version: Beta-4.2.0-r7571-b29

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