org.apache.fulcrum.yaafi.framework.interceptor
Interface AvalonInterceptorService

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

public interface AvalonInterceptorService

Defining the common interface of all interceptors.

Author:
Siegfried Goeschl

Field Summary
static int ON_ENTRY
          indicating entering a service method
static int ON_ERROR
          indicating exiting a service method throwing an exception
static int ON_EXIT
          indicating exiting a service method without throwing an exception
 
Method Summary
 void onEntry(AvalonInterceptorContext avalonInterceptorContext)
          Called before a service method is invoked.
 void onError(AvalonInterceptorContext avalonInterceptorContext, java.lang.Throwable t)
          Called when a service method throws an exeption
 void onExit(AvalonInterceptorContext avalonInterceptorContext, java.lang.Object result)
          Called after a service method was invoked.
 

Field Detail

ON_ENTRY

static final int ON_ENTRY
indicating entering a service method

See Also:
Constant Field Values

ON_EXIT

static final int ON_EXIT
indicating exiting a service method without throwing an exception

See Also:
Constant Field Values

ON_ERROR

static final int ON_ERROR
indicating exiting a service method throwing an exception

See Also:
Constant Field Values
Method Detail

onEntry

void onEntry(AvalonInterceptorContext avalonInterceptorContext)
Called before a service method is invoked.

Parameters:
avalonInterceptorContext - shared interceptor context

onExit

void onExit(AvalonInterceptorContext avalonInterceptorContext,
            java.lang.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,
             java.lang.Throwable t)
Called when a service method throws an exeption

Parameters:
avalonInterceptorContext - shared interceptor context
t - the resulting exception


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.