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 TypMethodeBeschreibungvoid
Clears the transaction id for the current thread.void
Decrement the current service invocation depthfinal Object[]
getArgs()
int
Get the current service invocation depthfinal Long
final Method
final Object
final String
final ThreadLocalStorage
boolean
void
Increment the current service invocation depthvoid
setTransactionId
(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:
getRequestContext
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- Returns the context for the given request.
-
getServiceDelegate
- Angegeben von:
getServiceDelegate
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- Returns the serviceDelegate.
-
getServiceName
- Angegeben von:
getServiceName
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- Returns the serviceName.
-
getServiceShorthand
- Angegeben von:
getServiceShorthand
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- Returns the serviceShorthand.
-
getArgs
- Angegeben von:
getArgs
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- Returns the args.
-
getMethod
- Angegeben von:
getMethod
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- Returns the method.
-
getThreadContext
- Angegeben von:
getThreadContext
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- Returns the ThreadLocalStorage
-
hasTransactionId
public boolean hasTransactionId()- Angegeben von:
hasTransactionId
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- is a transaction id defined for the current thread
-
getTransactionId
- Angegeben von:
getTransactionId
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- get the transaction id defined for the current thread
-
setTransactionId
Set the transaction id for the current thread.- Angegeben von:
setTransactionId
in SchnittstelleAvalonInterceptorContext
- Parameter:
transactionId
- the transaction id
-
clearTransactionId
public void clearTransactionId()Clears the transaction id for the current thread.- Angegeben von:
clearTransactionId
in SchnittstelleAvalonInterceptorContext
-
incrementInvocationDepth
public void incrementInvocationDepth()Increment the current service invocation depth- Angegeben von:
incrementInvocationDepth
in SchnittstelleAvalonInterceptorContext
-
decrementInvocationDepth
public void decrementInvocationDepth()Decrement the current service invocation depth- Angegeben von:
decrementInvocationDepth
in SchnittstelleAvalonInterceptorContext
-
getInvocationDepth
public int getInvocationDepth()Get the current service invocation depth- Angegeben von:
getInvocationDepth
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- the current service invocation depth
-
getInvocationId
- Angegeben von:
getInvocationId
in SchnittstelleAvalonInterceptorContext
- Gibt zurück:
- Returns the invocationId.
-
toString
-