Interface AvalonInterceptorService

All Known Subinterfaces:
JamonInterceptorService, JavaSimonInterceptorService, LoggingInterceptorService, PerformanceInterceptorService
All Known Implementing Classes:
BaseInterceptorServiceImpl, JamonInterceptorServiceImpl, JavaSimonInterceptorServiceImpl, LoggingInterceptorServiceImpl, PerformanceInterceptorServiceImpl

public interface AvalonInterceptorService
Defining the common interface of all interceptors.
Author:
Siegfried Goeschl
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    indicating entering a service method
    static final int
    indicating exiting a service method throwing an exception
    static final int
    indicating exiting a service method without throwing an exception
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEntry(AvalonInterceptorContext avalonInterceptorContext)
    Called before a service method is invoked.
    void
    onError(AvalonInterceptorContext avalonInterceptorContext, Throwable t)
    Called when a service method throws an exeption
    void
    onExit(AvalonInterceptorContext avalonInterceptorContext, Object result)
    Called after a service method was invoked.
  • Field Details

    • ON_ENTRY

      static final int ON_ENTRY
      indicating entering a service method
      See Also:
    • ON_EXIT

      static final int ON_EXIT
      indicating exiting a service method without throwing an exception
      See Also:
    • ON_ERROR

      static final int ON_ERROR
      indicating exiting a service method throwing an exception
      See Also:
  • Method Details

    • onEntry

      void onEntry(AvalonInterceptorContext avalonInterceptorContext)
      Called before a service method is invoked.
      Parameters:
      avalonInterceptorContext - shared interceptor context
    • onExit

      void onExit(AvalonInterceptorContext avalonInterceptorContext, Object result)
      Called after a service method was invoked.
      Parameters:
      avalonInterceptorContext - shared interceptor context
      result - the result of the invocation
    • onError

      void onError(AvalonInterceptorContext avalonInterceptorContext, Throwable t)
      Called when a service method throws an exeption
      Parameters:
      avalonInterceptorContext - shared interceptor context
      t - the resulting exception