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

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

getServiceDelegate

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

getServiceName

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

getServiceShorthand

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

getArgs

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

getMethod

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

getThreadContext

public ThreadLocalStorage getThreadContext()
Returns:
Returns the ThreadLocalStorage

hasTransactionId

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

getTransactionId

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

setTransactionId

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

Parameters:
transactionId - the transaction id

clearTransactionId

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


incrementInvocationDepth

public void incrementInvocationDepth()
Increment the current service invocation depth


decrementInvocationDepth

public void decrementInvocationDepth()
Decrement the current service invocation depth


getInvocationDepth

public int getInvocationDepth()
Get the current service invocation depth

Returns:
the current service invocation depth

getInvocationId

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


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