public class AvalonInterceptorContextImpl extends Object implements AvalonInterceptorContext
| Constructor and Description |
|---|
AvalonInterceptorContextImpl(String serviceName,
String serviceShorthand,
Object serviceDelegate,
Method method,
Object[] args)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearTransactionId()
Clears the transaction id for the current thread.
|
void |
decrementInvocationDepth()
Decrement the current service invocation depth
|
Object[] |
getArgs() |
int |
getInvocationDepth()
Get the current service invocation depth
|
Long |
getInvocationId() |
Method |
getMethod() |
Map<String,Object> |
getRequestContext() |
Object |
getServiceDelegate() |
String |
getServiceName() |
String |
getServiceShorthand() |
ThreadLocalStorage |
getThreadContext() |
Object |
getTransactionId() |
boolean |
hasTransactionId() |
void |
incrementInvocationDepth()
Increment the current service invocation depth
|
void |
setTransactionId(Object transactionId)
Set the transaction id for the current thread.
|
String |
toString() |
public AvalonInterceptorContextImpl(String serviceName, String serviceShorthand, Object serviceDelegate, Method method, Object[] args)
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 invocationpublic final Map<String,Object> getRequestContext()
getRequestContext in interface AvalonInterceptorContextpublic final Object getServiceDelegate()
getServiceDelegate in interface AvalonInterceptorContextpublic final String getServiceName()
getServiceName in interface AvalonInterceptorContextpublic String getServiceShorthand()
getServiceShorthand in interface AvalonInterceptorContextpublic final Object[] getArgs()
getArgs in interface AvalonInterceptorContextpublic final Method getMethod()
getMethod in interface AvalonInterceptorContextpublic final ThreadLocalStorage getThreadContext()
getThreadContext in interface AvalonInterceptorContextpublic boolean hasTransactionId()
hasTransactionId in interface AvalonInterceptorContextpublic Object getTransactionId()
getTransactionId in interface AvalonInterceptorContextpublic void setTransactionId(Object transactionId)
setTransactionId in interface AvalonInterceptorContexttransactionId - the transaction idpublic void clearTransactionId()
clearTransactionId in interface AvalonInterceptorContextpublic void incrementInvocationDepth()
incrementInvocationDepth in interface AvalonInterceptorContextpublic void decrementInvocationDepth()
decrementInvocationDepth in interface AvalonInterceptorContextpublic int getInvocationDepth()
getInvocationDepth in interface AvalonInterceptorContextpublic final Long getInvocationId()
getInvocationId in interface AvalonInterceptorContextpublic String toString()
toString in class ObjectObject.toString()Copyright © 2004–1970 The Apache Software Foundation. All rights reserved.