Schnittstelle AvalonInterceptorContext
- Alle bekannten Implementierungsklassen:
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.
- Autor:
- Siegfried Goeschl
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Clears the transaction id for the current thread.void
Decrement the current service invocation depthObject[]
getArgs()
int
Get the current service invocation depthboolean
void
Increment the current service invocation depthvoid
setTransactionId
(Object transactionId) Set the transaction id for the current thread.
-
Methodendetails
-
getRequestContext
- Gibt zurück:
- Returns the context for the given request.
-
getServiceDelegate
Object getServiceDelegate()- Gibt zurück:
- Returns the serviceDelegate.
-
getServiceName
String getServiceName()- Gibt zurück:
- Returns the serviceName.
-
getServiceShorthand
String getServiceShorthand()- Gibt zurück:
- Returns the serviceShorthand.
-
getArgs
Object[] getArgs()- Gibt zurück:
- Returns the args.
-
getMethod
Method getMethod()- Gibt zurück:
- Returns the method.
-
getThreadContext
ThreadLocalStorage getThreadContext()- Gibt zurück:
- Returns the ThreadLocalStorage
-
hasTransactionId
boolean hasTransactionId()- Gibt zurück:
- is a transaction id defined for the current thread
-
getTransactionId
Object getTransactionId()- Gibt zurück:
- get the transaction id defined for the current thread
-
setTransactionId
Set the transaction id for the current thread.- Parameter:
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- Gibt zurück:
- the current service invocation depth
-
getInvocationId
Long getInvocationId()- Gibt zurück:
- Returns the invocationId.
-