|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorContextImpl
public class AvalonInterceptorContextImpl
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.
Constructor Summary | |
---|---|
AvalonInterceptorContextImpl(String serviceName,
String serviceShorthand,
Object serviceDelegate,
Method method,
Object[] args)
Constructor. |
Method Summary | |
---|---|
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 |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 invocationMethod Detail |
---|
public final Map 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |