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

All Known Implementing Classes:
AvalonInterceptorContextImpl

public interface AvalonInterceptorContext

Contains context information for the interceptors being invoked. The class contains a request context which allows to store data from within an interceptor. It also provides access to a ThreadLocalStorage to associate data with the current thread.

Author:
Siegfried Goeschl

Method Summary
 void clearTransactionId()
          Clears the transaction id for the current thread.
 void decrementInvocationDepth()
          Decrement the current service invocation depth
 java.lang.Object[] getArgs()
           
 int getInvocationDepth()
          Get the current service invocation depth
 java.lang.Long getInvocationId()
           
 java.lang.reflect.Method getMethod()
           
 java.util.Map getRequestContext()
           
 java.lang.Object getServiceDelegate()
           
 java.lang.String getServiceName()
           
 java.lang.String getServiceShorthand()
           
 ThreadLocalStorage getThreadContext()
           
 java.lang.Object getTransactionId()
           
 boolean hasTransactionId()
           
 void incrementInvocationDepth()
          Increment the current service invocation depth
 void setTransactionId(java.lang.Object transactionId)
          Set the transaction id for the current thread.
 

Method Detail

getRequestContext

java.util.Map getRequestContext()
Returns:
Returns the context for the given request.

getServiceDelegate

java.lang.Object getServiceDelegate()
Returns:
Returns the serviceDelegate.

getServiceName

java.lang.String getServiceName()
Returns:
Returns the serviceName.

getServiceShorthand

java.lang.String getServiceShorthand()
Returns:
Returns the serviceShorthand.

getArgs

java.lang.Object[] getArgs()
Returns:
Returns the args.

getMethod

java.lang.reflect.Method getMethod()
Returns:
Returns the method.

getThreadContext

ThreadLocalStorage getThreadContext()
Returns:
Returns the ThreadLocalStorage

hasTransactionId

boolean hasTransactionId()
Returns:
is a transaction id defined for the current thread

getTransactionId

java.lang.Object getTransactionId()
Returns:
get the transaction id defined for the current thread

setTransactionId

void setTransactionId(java.lang.Object transactionId)
Set the transaction id for the current thread.

Parameters:
transactionId - the transaction id

clearTransactionId

void clearTransactionId()
Clears the transaction id for the current thread.


incrementInvocationDepth

void incrementInvocationDepth()
Increment the current service invocation depth


decrementInvocationDepth

void decrementInvocationDepth()
Decrement the current service invocation depth


getInvocationDepth

int getInvocationDepth()
Get the current service invocation depth

Returns:
the current service invocation depth

getInvocationId

java.lang.Long getInvocationId()
Returns:
Returns the invocationId.


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