|
||||||||||
| 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 invocation| Method Detail |
|---|
public final Map 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||