Class 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
    • 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)  
      • 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,
                              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 java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation arg0)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface org.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.