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 -
Method Summary
Modifier and TypeMethodDescriptionvoidonEntry(AvalonInterceptorContext avalonInterceptorContext) Called before a service method is invoked.voidonError(AvalonInterceptorContext avalonInterceptorContext, Throwable t) Called when a service method throws an exeptionvoidonExit(AvalonInterceptorContext avalonInterceptorContext, Object result) Called after a service method was invoked.
-
Field Details
-
ON_ENTRY
static final int ON_ENTRYindicating entering a service method- See Also:
-
ON_EXIT
static final int ON_EXITindicating exiting a service method without throwing an exception- See Also:
-
ON_ERROR
static final int ON_ERRORindicating exiting a service method throwing an exception- See Also:
-
-
Method Details
-
onEntry
Called before a service method is invoked.- Parameters:
avalonInterceptorContext- shared interceptor context
-
onExit
Called after a service method was invoked.- Parameters:
avalonInterceptorContext- shared interceptor contextresult- the result of the invocation
-
onError
Called when a service method throws an exeption- Parameters:
avalonInterceptorContext- shared interceptor contextt- the resulting exception
-