ome.services.util
Class ServiceHandler
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceHandler
public ServiceHandler(CurrentDetails cd)
ServiceHandler
public ServiceHandler(CurrentDetails cd,
long methodTimeWarn,
long methodTimeError)
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: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.