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 AvalonInterceptorContext
public final Object getServiceDelegate()
getServiceDelegate
in interface AvalonInterceptorContext
public final String getServiceName()
getServiceName
in interface AvalonInterceptorContext
public String getServiceShorthand()
getServiceShorthand
in interface AvalonInterceptorContext
public final Object[] getArgs()
getArgs
in interface AvalonInterceptorContext
public final Method getMethod()
getMethod
in interface AvalonInterceptorContext
public final ThreadLocalStorage getThreadContext()
getThreadContext
in interface AvalonInterceptorContext
public boolean hasTransactionId()
hasTransactionId
in interface AvalonInterceptorContext
public Object getTransactionId()
getTransactionId
in interface AvalonInterceptorContext
public void setTransactionId(Object transactionId)
setTransactionId
in interface AvalonInterceptorContext
transactionId
- the transaction idpublic void clearTransactionId()
clearTransactionId
in interface AvalonInterceptorContext
public void incrementInvocationDepth()
incrementInvocationDepth
in interface AvalonInterceptorContext
public void decrementInvocationDepth()
decrementInvocationDepth
in interface AvalonInterceptorContext
public int getInvocationDepth()
getInvocationDepth
in interface AvalonInterceptorContext
public final Long getInvocationId()
getInvocationId
in interface AvalonInterceptorContext
public String toString()
toString
in class Object
Object.toString()
Copyright © 2004–1970 The Apache Software Foundation. All rights reserved.