Klasse AvalonInterceptorContextImpl
java.lang.Object
org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorContextImpl
- Alle implementierten Schnittstellen:
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.
- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidClears the transaction id for the current thread.voidDecrement the current service invocation depthfinal Object[]getArgs()intGet the current service invocation depthfinal Longfinal Methodfinal Objectfinal Stringfinal ThreadLocalStoragebooleanvoidIncrement the current service invocation depthvoidsetTransactionId(Object transactionId) Set the transaction id for the current thread.toString()
-
Konstruktordetails
-
AvalonInterceptorContextImpl
public AvalonInterceptorContextImpl(String serviceName, String serviceShorthand, Object serviceDelegate, Method method, Object[] args) Constructor.- Parameter:
serviceName- the name of the service being interceptedserviceShorthand- the shorthand of the service being interceptedserviceDelegate- the real service implementationmethod- the method being invokedargs- the list of arguments for the method invocation
-
-
Methodendetails
-
getRequestContext
- Angegeben von:
getRequestContextin SchnittstelleAvalonInterceptorContext- Gibt zurück:
- Returns the context for the given request.
-
getServiceDelegate
- Angegeben von:
getServiceDelegatein SchnittstelleAvalonInterceptorContext- Gibt zurück:
- Returns the serviceDelegate.
-
getServiceName
- Angegeben von:
getServiceNamein SchnittstelleAvalonInterceptorContext- Gibt zurück:
- Returns the serviceName.
-
getServiceShorthand
- Angegeben von:
getServiceShorthandin SchnittstelleAvalonInterceptorContext- Gibt zurück:
- Returns the serviceShorthand.
-
getArgs
- Angegeben von:
getArgsin SchnittstelleAvalonInterceptorContext- Gibt zurück:
- Returns the args.
-
getMethod
- Angegeben von:
getMethodin SchnittstelleAvalonInterceptorContext- Gibt zurück:
- Returns the method.
-
getThreadContext
- Angegeben von:
getThreadContextin SchnittstelleAvalonInterceptorContext- Gibt zurück:
- Returns the ThreadLocalStorage
-
hasTransactionId
public boolean hasTransactionId()- Angegeben von:
hasTransactionIdin SchnittstelleAvalonInterceptorContext- Gibt zurück:
- is a transaction id defined for the current thread
-
getTransactionId
- Angegeben von:
getTransactionIdin SchnittstelleAvalonInterceptorContext- Gibt zurück:
- get the transaction id defined for the current thread
-
setTransactionId
Set the transaction id for the current thread.- Angegeben von:
setTransactionIdin SchnittstelleAvalonInterceptorContext- Parameter:
transactionId- the transaction id
-
clearTransactionId
public void clearTransactionId()Clears the transaction id for the current thread.- Angegeben von:
clearTransactionIdin SchnittstelleAvalonInterceptorContext
-
incrementInvocationDepth
public void incrementInvocationDepth()Increment the current service invocation depth- Angegeben von:
incrementInvocationDepthin SchnittstelleAvalonInterceptorContext
-
decrementInvocationDepth
public void decrementInvocationDepth()Decrement the current service invocation depth- Angegeben von:
decrementInvocationDepthin SchnittstelleAvalonInterceptorContext
-
getInvocationDepth
public int getInvocationDepth()Get the current service invocation depth- Angegeben von:
getInvocationDepthin SchnittstelleAvalonInterceptorContext- Gibt zurück:
- the current service invocation depth
-
getInvocationId
- Angegeben von:
getInvocationIdin SchnittstelleAvalonInterceptorContext- Gibt zurück:
- Returns the invocationId.
-
toString
-