Package ome.services.util
Class ServiceHandler
- java.lang.Object
-
- ome.services.util.ServiceHandler
-
- All Implemented Interfaces:
java.util.EventListener
,org.aopalliance.aop.Advice
,org.aopalliance.intercept.Interceptor
,org.aopalliance.intercept.MethodInterceptor
,org.springframework.context.ApplicationListener
public class ServiceHandler extends java.lang.Object implements org.aopalliance.intercept.MethodInterceptor, org.springframework.context.ApplicationListener
-
-
Constructor Summary
Constructors Constructor Description ServiceHandler(CurrentDetails cd)
ServiceHandler(CurrentDetails cd, long methodTimeWarn, long methodTimeError)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanup()
protected java.lang.Throwable
getAndLogException(java.lang.Throwable t)
static java.lang.String
getResultsString(java.lang.Object o, java.util.IdentityHashMap<java.lang.Object,java.lang.String> cache)
public for testing purposes.java.lang.Object
invoke(org.aopalliance.intercept.MethodInvocation arg0)
void
onApplicationEvent(org.springframework.context.ApplicationEvent arg0)
-
-
-
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 interfaceorg.springframework.context.ApplicationListener
-
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
- See Also:
MethodInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)
-
cleanup
protected void cleanup()
-
getAndLogException
protected java.lang.Throwable getAndLogException(java.lang.Throwable t)
-
getResultsString
public static java.lang.String getResultsString(java.lang.Object o, java.util.IdentityHashMap<java.lang.Object,java.lang.String> cache)
public for testing purposes.
-
-